mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-09 21:56:32 +08:00
Escape inventory column names [SCI-9362]
This commit is contained in:
parent
d69b7cc6e8
commit
701de269f2
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* global I18n HelperModule truncateLongString animateSpinner RepositoryListColumnType RepositoryStockColumnType */
|
||||
/* global RepositoryDatatable RepositoryStatusColumnType RepositoryChecklistColumnType dropdownSelector RepositoryDateTimeColumnType */
|
||||
/* global RepositoryDateColumnType RepositoryDatatable */
|
||||
/* global RepositoryDateColumnType RepositoryDatatable _ */
|
||||
/* eslint-disable no-restricted-globals */
|
||||
|
||||
|
||||
|
|
@ -297,6 +297,8 @@ var RepositoryColumns = (function() {
|
|||
} else {
|
||||
thederName = el.innerText;
|
||||
}
|
||||
thederName = _.escape(thederName);
|
||||
|
||||
if (['row-name', 'archived-by', 'archived-on'].includes(el.id)) {
|
||||
visClass = '';
|
||||
visText = '';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue