Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-15705

Dropdown entry in edit form is being remembered when pressing back in Chrome and Opera

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unsupported version
    • Icon: Trivial Trivial
    • None
    • 4.0.5rc1, 4.2.0beta1
    • Frontend (F)

      Scenario 1:
      1. Create item with regular expression preprocessing.
      2. Save it and open the form again.
      3. Change preprocessing step to something else like XPath, but leave empty field.
      4. Try to save and get error.
      5. Press back.

      Result: Observe that preprocessing step is selected XPath, but fields are wrong.
      Expected: Previous value should be selected.

      Scenario 2:
      1. Got to web scenarios.
      2. Create - open form change "Agent" to something else.
      3. Leave other fields empty to get error.
      4. Try to save and get error.
      5. Press back.

      Result: Observe that in "Agent" field the new value is selected.
      Expected: Previous value should be selected.

      Chrome and Opera do not respect autocomplete="off" attribute in dropdowns.

      Proposed solution is to add

      $this->setAttribute('autocomplete', 'off');
      

      in CForm constructor. Checked and it seems to work, but it probably will require quite a lot of testing.

            zabbix.dev Zabbix Development Team
            iivs Ivo Kurzemnieks
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: