Merge pull request #19764 from ping-yee/19625-move-col

Fix #19625 - escape special characters in move columns.
This commit is contained in:
Maurício Meneghini Fauth 2025-08-25 15:58:47 -03:00 committed by GitHub
commit 63e9356e9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -384,7 +384,7 @@ AJAX.registerOnload('table/structure.js', function () {
for (var i in data.columns) {
var theColumn = data.columns[i];
var $theRow = $rows
.find('input:checkbox[value=\'' + theColumn + '\']')
.find('input:checkbox[value=' + $.escapeSelector(theColumn) + ']')
.closest('tr');
// append the row for this column to the table
$fieldsTable.append($theRow);