Skip to content

Commit

Permalink
fix: escape single quotes (#25104) (#25153)
Browse files Browse the repository at this point in the history
Resolves #25078 (comment)

(cherry picked from commit ac05c7d)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
  • Loading branch information
mergify[bot] and barredterra committed Feb 28, 2024
1 parent f116cdc commit 37bd2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/list/list_view.js
Expand Up @@ -1440,7 +1440,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
this.data = this.data.filter((d) => !names.includes(d.name));
for (let name of names) {
this.$result
.find(`.list-row-checkbox[data-name='${name}']`)
.find(`.list-row-checkbox[data-name='${name.replace(/'/g, "\\'")}']`)
.closest(".list-row-container")
.remove();
}
Expand Down

0 comments on commit 37bd2ad

Please sign in to comment.