Details
-
Bug
-
Resolution: Unresolved
-
High
-
5.3
-
None
Description
Using the API, when modifying only the name of a section, I get this exception
Argument 'sectionUpdateStruct' is invalid: section with specified identifier already exists
Step to reproduce:
Load a section, then create an object of type SectionUpdateStruct() and set a new name. To finish, use the function updateSection to update the section.
$sectionUpdateValue = new SectionUpdateStruct(); $this->sectionHelper->loadSection( $sectionId ); $sectionUpdateValue->name = "what you want"; $this->container->get( 'ezpublish.api.service.section' )->UpdateSection( $section, $sectionUpdateValue );
An exception will be thrown
Attachments
Issue Links
- blocks
-
EZP-22654 As a developer, I want to be able to edit and create a section in the admin part of the PlatformUI
- Closed