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

    Details

    • Type: Problem report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.0.5rc1, 4.2.0beta1
    • Fix Version/s: None
    • Component/s: Frontend (F)
    • Team:
      Team B

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: