Browse Source

Update bootstrap-table-editable.js

field missing, parameters must be [value, row, index, field]
Niyamaka 1 year ago
parent
commit
265a55bcec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extensions/editable/bootstrap-table-editable.js

+ 1 - 1
src/extensions/editable/bootstrap-table-editable.js

@@ -63,7 +63,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
       column.formatter = column.formatter || (value => value)
       column._formatter = column._formatter ? column._formatter : column.formatter
       column.formatter = (value, row, index, field) => {
-        let result = Utils.calculateObjectValue(column, column._formatter, [value, row, index], value)
+        let result = Utils.calculateObjectValue(column, column._formatter, [value, row, index, field], value)
 
         result = typeof result === 'undefined' || result === null ? this.options.undefinedText : result
         if (this.options.uniqueId !== undefined && !column.alwaysUseFormatter) {