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

Restore items whose original location has been deleted

    Details

      Description

      In EZP-25249 restoring items was implemented.

      Use case

      • As an editor, I want to be able to restore an item whose original location doesn't exist anymore. If so, a dialog box will offer to display the universal discovery widget to allow selecting a new parent location and it will be restored there.

        Issue Links

          Activity

          Hide
          Paulo Nunes (Inactive) added a comment -

          Currently (on 16.04rc), even when the original location (parent) has been restored, a notification error is displayed. This happens because when we restore the parent, he is restored with a different location id that he had when was trashed.

          Show
          Paulo Nunes (Inactive) added a comment - Currently (on 16.04rc), even when the original location (parent) has been restored, a notification error is displayed. This happens because when we restore the parent, he is restored with a different location id that he had when was trashed.
          Hide
          Yannick Roger (Inactive) added a comment -
          Show
          Yannick Roger (Inactive) added a comment - Yes it's documented in the code: https://github.com/ezsystems/PlatformUIBundle/commit/b73bb5d9d4df993031f0066655126142367d6721#diff-c88bca056e346fcd558e285709ce7617R119 We chose not to make a too complicated error message.
          Hide
          Yannick Roger (Inactive) added a comment - - edited

          I attached a screenshot. When clicking on the "Pick a new Location to restore Item" (label to be defined), a UDW opens allowing to chose the new parent. After that the item is restored.

          The screenshot displays the proposal for something that would be quick to implement (as there is not concurrency, one item is restored at the time).

          Show
          Yannick Roger (Inactive) added a comment - - edited I attached a screenshot. When clicking on the "Pick a new Location to restore Item" (label to be defined), a UDW opens allowing to chose the new parent. After that the item is restored. The screenshot displays the proposal for something that would be quick to implement (as there is not concurrency, one item is restored at the time).
          Show
          Yannick Roger (Inactive) added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/819
          Hide
          Eduardo Fernandes (Inactive) added a comment - - edited

          [~yannick.roger@ez.no],

          The pull requested was tested and approved in master.

          Show
          Eduardo Fernandes (Inactive) added a comment - - edited [~yannick.roger@ez.no] , The pull requested was tested and approved in master.
          Show
          Yannick Roger (Inactive) added a comment - Added in master: https://github.com/ezsystems/PlatformUIBundle/commit/fb2a032b5f061accf6312209a508c1eecb887c3a

            People

            • Assignee:
              Unassigned
              Reporter:
              Yannick Roger (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: