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

Group buttons are not working due to jquery attr->prop change

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.3.2
    • Component/s: None
    • Labels:

      Description

      How to repeat:

      • go to Configuration -> Discovery
      • add new rule
      • add snmpv3 check with authPriv security level
      • leave MD5 / DES radio buttons untouched
      • save rule
      • open rule again
      • MD5/DES buttons are grayed and unselected, it's not possible to update rule

      this is because jquery changed code from attr() to prop() call, and, for discovery, code

      if (radioObj.attr('type') == 'radio') {
      	radioObj.removeAttr('checked');
      
      	jQuery('#' + name + '_' + itemObj.val()).attr('checked', 'checked');
      }
      

      should be remade to

      if (radioObj.attr('type') == 'radio') {
      	radioObj.prop('checked', false);
      	jQuery('#' + name + '_' + itemObj.val()).prop('checked', true);
      }
      

      we should also test if some other parts of the code are affected.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrewtch Andrejs ńĆirkovs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: