Uploaded image for project: 'Activation'
  1. Activation
  2. MGNLACTIVATION-59

When activating, mgnl:lastActivated is not updated on public side

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Do
    • Neutral
    • None
    • 5.0
    • None
    • All
    • Yes
    • Yes

    Description

      We are using the exchange-simple module for activations, and tried to key off of mgnl:lastaction for one of our template features (a reminder when a page has gone unedited for a long time). We wanted to key off of lastaction instead of lastmodified so that someone could simply re-activate to clear the reminder.

      However, the author side of the activation transaction updates lastaction AFTER the activation completes successfully, so the public side is left with a one-activation-too-old lastaction date.

      To fix it, I used the attached patch. It only updates the lastaction, and only for the page, NOT for any of the content inside the page. A more complete patch might also update the activatorid, and do it for all the content below the page (but not pages below the page). I'll leave the more complex patch to you guys, if you decide it's worthwhile. This one works for our purposes.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              nwing Nickolaus Wing
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD