Skip to content

Commit

Permalink
Fix: unescaped output when creating new records in modals
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Oct 1, 2021
1 parent 8c13cfd commit 6d966f6
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion resources/views/modals/create-location.phtml
Expand Up @@ -43,7 +43,6 @@ use Fisharebest\Webtrees\Tree;
// If this modal was activated by the "new" button in a select2
// edit control, then insert the result and select it.
let option = new Option(data.text, data.id, true, true);
option.innerHTML = option.innerText;

$(select)
.select2({ escapeMarkup: (x) => x })
Expand Down
1 change: 0 additions & 1 deletion resources/views/modals/create-media-object.phtml
Expand Up @@ -46,7 +46,6 @@ use Fisharebest\Webtrees\Tree;
// If this modal was activated by the "new" button in a select2
// edit control, then insert the result and select it.
let option = new Option(data.text, data.id, true, true);
option.innerHTML = option.innerText;

$(select)
.select2({ escapeMarkup: (x) => x })
Expand Down
2 changes: 0 additions & 2 deletions resources/views/modals/create-note-object.phtml
Expand Up @@ -43,8 +43,6 @@ use Fisharebest\Webtrees\Tree;
// If this modal was activated by the "new" button in a select2
// edit control, then insert the result and select it.
let option = new Option(data.text, data.id, true, true);
option.innerHTML = option.innerText;
option.innerHTML = data.text;

$(select)
.select2({ escapeMarkup: (x) => x })
Expand Down
1 change: 0 additions & 1 deletion resources/views/modals/create-repository.phtml
Expand Up @@ -45,7 +45,6 @@ use Fisharebest\Webtrees\Tree;
// If this modal was activated by the "new" button in a select2
// edit control, then insert the result and select it.
let option = new Option(data.text, data.id, true, true);
option.innerHTML = option.innerText;

$(select)
.select2({ escapeMarkup: (x) => x })
Expand Down
1 change: 0 additions & 1 deletion resources/views/modals/create-source.phtml
Expand Up @@ -43,7 +43,6 @@ use Fisharebest\Webtrees\Tree;
// If this modal was activated by the "new" button in a select2
// edit control, then insert the result and select it.
let option = new Option(data.text, data.id, true, true);
option.innerHTML = option.innerText;

$(select)
.select2({ escapeMarkup: (x) => x })
Expand Down
1 change: 0 additions & 1 deletion resources/views/modals/create-submission.phtml
Expand Up @@ -43,7 +43,6 @@ use Fisharebest\Webtrees\Tree;
// If this modal was activated by the "new" button in a select2
// edit control, then insert the result and select it.
let option = new Option(data.text, data.id, true, true);
option.innerHTML = option.innerText;

$(select)
.select2({ escapeMarkup: (x) => x })
Expand Down
1 change: 0 additions & 1 deletion resources/views/modals/create-submitter.phtml
Expand Up @@ -43,7 +43,6 @@ use Fisharebest\Webtrees\Tree;
// If this modal was activated by the "new" button in a select2
// edit control, then insert the result and select it.
let option = new Option(data.text, data.id, true, true);
option.innerHTML = option.innerText;

$(select)
.select2({ escapeMarkup: (x) => x })
Expand Down

0 comments on commit 6d966f6

Please sign in to comment.