Browse Source

gluon-web: fix access to undefined in checkvalue()

Fixes: cfe1bba8 "gluon-web: fix radio button view of ListValues"
Matthias Schiffer 6 years ago
parent
commit
623faf794a

File diff suppressed because it is too large
+ 0 - 0
package/gluon-web/files/lib/gluon/web/www/static/resources/gluon-web.js


+ 2 - 1
package/gluon-web/javascript/gluon-web.js

@@ -159,7 +159,8 @@
 			return (value == ref);
 		} else {
 			t = document.getElementById(target + '.' + ref);
-			return (t.type == "radio" && t.checked);
+			if (t)
+				return (t.type == "radio" && t.checked);
 		}
 
 		return false;

Some files were not shown because too many files changed in this diff