Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23058

Exception when changing the name of a section using API

    Details

      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

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Idriss Birem (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: