Skip to content
Snippets Groups Projects
Commit 35f230a7 authored by Manuel Leduc's avatar Manuel Leduc
Browse files

XWIKI-19183: Wrong number of elements in LiveTable in case of view denied

Wrap the localization of platform.livetable.docNotViewable on a call to jsontool.serialize to form a valid javascript string.
parent 1180900c
No related branches found
No related tags found
No related merge requests found
...@@ -359,7 +359,7 @@ XWiki.widgets.LiveTable = Class.create({ ...@@ -359,7 +359,7 @@ XWiki.widgets.LiveTable = Class.create({
// When a cell is part of a non-viewable row (except for the actions that simply stays empty), we display a // When a cell is part of a non-viewable row (except for the actions that simply stays empty), we display a
// message indicating that the content is not present because the current user does not have the right to view it. // message indicating that the content is not present because the current user does not have the right to view it.
if (!row['doc_viewable'] && !row[fieldName]) { if (!row['doc_viewable'] && !row[fieldName]) {
const notViewableCellMessage = $services.localization.render('platform.livetable.docNotViewable'); const notViewableCellMessage = $jsontool.serialize($services.localization.render('platform.livetable.docNotViewable'));
var td = new Element('td', { var td = new Element('td', {
'class': [ 'class': [
fieldName, fieldName,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment