Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-3180

Command for creating FormBuilder Container folder is not compatible with current API

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 3.0.4, 3.1.x-dev
    • Form Builder
    • None

    Description

      Steps to reproduce:
      Execute the command for creating FormBuilder's container as described in the documentation (https://doc.ezplatform.com/en/latest/updating/4_update_2.3/#form-builder). Use `--parent-location` option and pass the value.

      Current result:
      The following exception is thrown:

       Argument 1 passed to eZ\Publish\Core\Repository\SiteAccessAware\LocationService::newLocationCreateStruct() must be of the type int, string given, called in /.../vendo
        r/ezsystems/ezplatform-form-builder/src/bundle/Command/CreateFormsContainerCommand.php on line 190
      

      Expected result:
      A container is created normally.

      Note:
      Some of the input options definitions are not following the current argument order, for instance:

      $this->addOption(
                  'parent-location',
                  'Location ID where the container will be created. If not provided, the parent of the Content Tree root for the current SiteAccess will be used',
                  InputOption::VALUE_OPTIONAL
              );
      

      also the command does not return proper exit code:

      Return value of "EzSystems\EzPlatformFormBuilderBundle\Command\CreateFormsContainerCommand::execute()" must be of the type int, "null" returned. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: