Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14989

[Backport] Improve XPage menu buttons enabled/disabled when rendering older versions

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 15.0.0
    • None
    • None
    • 0.25
    • Quasar
    • Team Quasar Sprint 280, Team Quasar sprint 282

    Description

      When looking at older versions of a document, page actions like 'publish' can still be active, and also 'copy' : then you'd expect that copy would copy the version you are looking at, but this is not the case: it copies the 'working version'. The same holds true for 'save as page template' : When looking at an older version, the 'save as template' action results in the 'working version' to be copied, not the one being looked at.

      It is better to disable the menu items 'publish', 'scheduled publication', 'copy' and 'save as page template' when looking at an older version. This reduces potential confusion. 'Take offline', 'rename', 'info' etc never result in any confusion, even not when looking at version history.

      Changes

      The menu actions:

      1. publish
      2. scheduled publication
      3. copy
      4. save as template

      won't be available any more when looking at an older version since the actions operate on the 'working version'

      QA Testing

      I've added an extensive integration test covering all menu action expectations in XPageResourceTest. The expected behavior in the UI is that when rendering older versions, and this version is not the same as the 'working version', then the above actions should always be disabled. Note that it can happen that the version directly below the 'working version' is the same as the working version. When clicking that one, the menu items can still be enabled.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: