on_page_update should include updated attributes

Permalink
It seems like this has been a flaw for quite awhile, but when you save page properties, the on_page_update event fires, and _then_ the page attributes are saved. So if you hook into that event, then want to check any attribute values, they are the old values, not the new ones coming in from the $_POST array.

Seems like there are a couple of ways this could be fixed.

1) Fire the on_page_update later on in the order, or save attributes before calling $c->update($data)

2) Create a different event, on_page_attributes_saved that fires once the attributes are saved.

I'm not sure if there's actually a reason that it works this way, or if there's something I'm not doing right that would change it? It seems like it makes the on_page_update event a lot less useful if it doesn't have the updated attribute values.

Has anyone else ran into this? What did you do to update it?

hereNT