[FIX] web, web_editor: use isDebug rather than debug on config

Since 72f7139f52, config.debug does not exist anymore, config.isDebug()
should be used.

Two commits merged at the same time were still using config.debug, 87a35d4263
and 88a26235ca

Closes #33961
This commit is contained in:
Romain Derie
2019-06-10 20:13:23 +00:00
parent 1cc92e1de2
commit 873fd422be
2 changed files with 2 additions and 2 deletions
@@ -813,7 +813,7 @@ var ListRenderer = BasicRenderer.extend({
});
this.optionalColumns.forEach(function (col) {
var txt = (col.attrs.string || self.state.fields[col.attrs.name].string) +
(config.debug ? (' (' + col.attrs.name + ')') : '');
(config.isDebug() ? (' (' + col.attrs.name + ')') : '');
var $checkbox = dom.renderCheckbox({
text: txt,
prop: {
@@ -141,7 +141,7 @@ var FileWidget = SearchableMediaWidget.extend({
this.options = _.extend({
firstFilters: [],
lastFilters: [],
showQuickUpload: config.debug,
showQuickUpload: config.isDebug(),
}, options || {});
this.attachments = [];