CMTV
Well-known member
- Affected version
- 2.0
Hi!
If the user is editing his published post without page reloading then
This happens only for
So this will update
Publishing post ---> Reloading page ---> Editing post
This will not cause
Publishing post ---> Editing post (without reloading the page)
This can possibly cause some "what the hell!?" exceptions (example below) when finding the difference between
This is how xenForo reacts when SELECTing the difference between
Example on test (locally hosted) forum:
Example on real forum (>65 000 posts):
Tested on latest Chrome and IE.
If the user is editing his published post without page reloading then
last_edit_date
column WILL NOT be updated!This happens only for
last_edit_date
column. Other columns (like edit_count
or data in xf_edit_history
) are updating correctly.So this will update
last_edit_date
correclty:Publishing post ---> Reloading page ---> Editing post
This will not cause
last_edit_date
updating:Publishing post ---> Editing post (without reloading the page)
This can possibly cause some "what the hell!?" exceptions (example below) when finding the difference between
last_edit_date
and post_date
within a query!This is how xenForo reacts when SELECTing the difference between
last_edit_date
and post_date
:Example on test (locally hosted) forum:
Example on real forum (>65 000 posts):
SELECT `last_edit_date`, `edit_count` FROM `xf_post` WHERE `edit_count` > 0 AND `last_edit_date` = 0
Tested on latest Chrome and IE.
Last edited: