user history not saved with empty table

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Blocker
    • 1.8.5
    • Affects Version/s: None
    • Component/s: Frontend (F)
    • None
    • Environment:
      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.

            Assignee:
            Unassigned
            Reporter:
            richlv
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: