Details
-
Improvement
-
Resolution: Won't Do
-
Neutral
-
None
-
5.0
-
None
-
All
-
-
Yes
-
Empty show more show less
-
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.