diff --git a/src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js b/src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js index 03b2d3e3e9..4cdeb199ca 100644 --- a/src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js +++ b/src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js @@ -121,7 +121,7 @@ event.preventDefault(); const config = JSON.parse(event.currentTarget.dataset.udwConfig); - const limit = parseInt(event.currentTarget.dataset.limit); + const limit = parseInt(event.currentTarget.dataset.limit, 10); const title = limit === 1 ? Translator.trans(/*@Desc("Select a Content item")*/ 'ezobjectrelationlist.title.single', {}, 'universal_discovery_widget') : Translator.trans(/*@Desc("Select Content item(s)")*/ 'ezobjectrelationlist.title.multi', {}, 'universal_discovery_widget');