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

          Idriss Birem (Inactive) created issue -
          Idriss Birem (Inactive) made changes -
          Field Original Value New Value
          Fix Version/s Engineering tracked issues [ 11179 ]
          Idriss Birem (Inactive) made changes -
          Status Open [ 1 ] Confirmed [ 10037 ]
          Idriss Birem (Inactive) made changes -
          Summary Impossible to change the name of a section using API Exception when changing the name of a section using API
          Idriss Birem (Inactive) made changes -
          Link This issue is blocked by EZP-22654 [ EZP-22654 ]
          Idriss Birem (Inactive) made changes -
          Link This issue is blocked by EZP-22654 [ EZP-22654 ]
          Idriss Birem (Inactive) made changes -
          Link This issue blocks EZP-22654 [ EZP-22654 ]
          André Rømcke made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          André Rømcke made changes -
          Status InputQ [ 10001 ] Backlog [ 10000 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 63654 ] EZ* Development Workflow [ 69704 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 69704 ] EZEE Development Workflow [ 107985 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          55s 1 Idriss Birem (Inactive) 24/Jun/14 12:03 PM
          Confirmed Confirmed InputQ InputQ
          51d 2h 43m 1 André Rømcke 14/Aug/14 2:47 PM
          InputQ InputQ Backlog Backlog
          33d 20h 42m 1 André Rømcke 17/Sep/14 11:30 AM

            People

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

              Dates

              • Created:
                Updated: