Details
-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
3.0.4, 3.1.x-dev
-
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
- duplicates
-
EZEE-3172 Command to create container for Forms is broken
- Closed