Skip to content

Commit 06b1c3b

Browse files
authored
Fix associations modal (#32271)
1 parent 3756da6 commit 06b1c3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/media_source/vendor/bootstrap/js/modal.es6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Joomla.initialiseModal = (modal, options) => {
4646
idFieldArr[0] = idFieldArr[0].replace(/"/g, '"');
4747

4848
if (!document.getElementById(idFieldArr[1])) {
49-
// eslint-disable-next-line no-new-func
50-
el = new Function(idFieldArr[0]); // This is UNSAFE!!!!
49+
// eslint-disable-next-line no-eval
50+
el = eval(idFieldArr[0]); // This is UNSAFE!!!!
5151
} else {
5252
el = document.getElementById(idFieldArr[1]).value;
5353
}

0 commit comments

Comments
 (0)