# HG changeset patch # User Nicolas Chauvat # Date 1528304064 -7200 # Node ID f0a5c2fa2b5d2626f085ec289533a4d48efa7d28 # Parent 807fd315ac98ff1cfafb45163d97d0aaa5920e5a [widgets.js] fix obvious bug detected by sonar diff -r 807fd315ac98 -r f0a5c2fa2b5d 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