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

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: 3.0.4, 3.1.0-dev
    • Fix Version/s: None
    • Component/s: Form Builder
    • Labels:
      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              kamil.madejski@ez.no Kamil Madejski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: