[widgets.js] fix obvious bug detected by sonar
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 06 Jun 2018 18:54:24 +0200
changeset 12314 f90e0d5c9a64
parent 12313 aa15dd521d04
child 12315 599a144f5b25
[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