[Rt-commit] rt branch, 4.4/bulkupdate-checkboxes, created. rt-4.4.0-71-g8ee2c77

Shawn Moore shawn at bestpractical.com
Mon Apr 11 16:41:09 EDT 2016


The branch, 4.4/bulkupdate-checkboxes has been created
        at  8ee2c779526defe69f1e5b9ce34fb8bc98d7c72a (commit)

- Log -----------------------------------------------------------------
commit 8ee2c779526defe69f1e5b9ce34fb8bc98d7c72a
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Mon Apr 11 20:40:18 2016 +0000

    Fix regression with Bulk Update check/clear all checkboxes
    
        input.name is empty, causing modern jQuery to throw a syntax error
    
    Fixes: I#31667

diff --git a/share/static/js/util.js b/share/static/js/util.js
index 45b3948..93db1b8 100644
--- a/share/static/js/util.js
+++ b/share/static/js/util.js
@@ -99,7 +99,7 @@ function setCheckbox(input, name, val) {
         name = input.name || input.attr('name');
         is_set_event = true;
     }
-    else {
+    else if (input.name) {
         var allfield = jQuery('input[name=' + input.name + ']');
         allfield.prop('checked', val);
     }

-----------------------------------------------------------------------


More information about the rt-commit mailing list