[widgets.js] fix obvious bug detected by sonar 3.26
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 06 Jun 2018 18:54:24 +0200
branch3.26
changeset 12424 f0a5c2fa2b5d
parent 12423 807fd315ac98
child 12425 8b3f1d1f0939
[widgets.js] fix obvious bug detected by sonar
cubicweb/web/data/cubicweb.widgets.js
--- a/cubicweb/web/data/cubicweb.widgets.js	Wed Jun 06 18:37:16 2018 +0200
+++ b/cubicweb/web/data/cubicweb.widgets.js	Wed Jun 06 18:54:24 2018 +0200
@@ -151,7 +151,7 @@
               */
             var settings = $(this.element).data('settings');
             var value = this.valueMethod.apply( this.element, arguments );
-            if (settings.multiple & arguments.length === 0) {
+            if (settings.multiple && arguments.length === 0) {
                 return extractLast(value);
             }
             return value