# HG changeset patch # User Nicolas Chauvat # Date 1528304064 -7200 # Node ID f90e0d5c9a647bbd3fe296814facf48f16b34332 # Parent aa15dd521d04cf682ef44b866ea26bfea8f939ce [widgets.js] fix obvious bug detected by sonar diff -r aa15dd521d04 -r f90e0d5c9a64 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