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

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.2
    • 2.3.2
    • None

    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

            Unassigned Unassigned
            andrewtch Andrejs ─îirkovs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: