-
Incident report
-
Resolution: Fixed
-
Blocker
-
None
-
None
-
1.8 branch rev 18595.
with empty user_history table nothing is ever added to the user history. debug reveals only these queries :
SELECT title1, url1, title2, url2, title3, url3, title4, url4, title5, url5 FROM user_history WHERE userid=1
SELECT title5, url5 FROM user_history WHERE userid=1
UPDATE user_history SET title1=title2, url1=url2, title2=title3, url2=url3, title3=title4, url3=url4, title4=title5, url4=url5, title5='S_CONFIGURATION_OF_ACTIONS', url5='actionconf.php' WHERE userid=1
so it never attempts to add a new record and is not bothered that 'update' affects no records.
when fixing, selenium test that checks the db afterwards is highly recommended.