From 846aae2331bca801647bd1c85e10b9ce244cd2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Grabowski?= Date: Tue, 14 Apr 2020 13:03:42 +0200 Subject: [PATCH] Update src/bundle/Resources/public/js/scripts/fieldType/ezobjectrelationlist.js Co-Authored-By: Dariusz Szut --- .../public/js/scripts/fieldType/ezobjectrelationlist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');