[FIX] web, web_editor: use isDebug rather than debug on config
Since72f7139f52, config.debug does not exist anymore, config.isDebug() should be used. Two commits merged at the same time were still using config.debug,87a35d4263and88a26235caCloses #33961
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user