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

[Admin Interface] Restoring an trashed object to several locations throws a multiple main_node error

    XMLWordPrintable

Details

    Description

      Restoring an object from trash to more than 1 location will throw the error:

      Error: There are more then one main_node for objectID: 67 	Apr 09 2013 16:20:56
      
      array(2) {
        [0]=>
        array(1) {
          ["node_id"]=>
          string(2) "73"
        }
        [1]=>
        array(1) {
          ["node_id"]=>
          string(2) "74"
        }
      }
      

      How to reproduce

      Steps:
      1 - log into admin2 with "Admin" account
      2 - click at "Content structure" (top menu)
      3 - Add 2 folders with names "Folder 1" and "Folder 2"
      4 - create an article with name "Art for test" and summary "This is the summary"
      5 - remove "Art for test" (check the "move for trash" checkbox if not checked already)
      6 - click on trash link (left menu)
      7 - click on the pencil in the right side "Art for test" row
      8 - choose "Select a location"
      9 - check both of the folders "Folder 1" and "Folder 2"
      10- click "OK" 
      11- verify on debug redirect the error mentioned above
      

      edit:
      forgot to mention that after the redirect from the page we get this error:

       The requested page could not be displayed. (2)
      
      The resource you requested was not found.
      
      Possible reasons:
      
          The ID number or the name of the resource was misspelled. Try changing the URL.
          The resource is no longer available.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            marcos.loureiro-obsolete@ez.no Marcos Loureiro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: