diff --git a/modules/entry/front/latest-buys/index.js b/modules/entry/front/latest-buys/index.js index 2e69598be0..637ecca6d5 100644 --- a/modules/entry/front/latest-buys/index.js +++ b/modules/entry/front/latest-buys/index.js @@ -53,10 +53,14 @@ export default class Controller extends Section { } onEditAccept() { + const rowsToEdit = []; + for (let row of this.checked) + rowsToEdit.push({id: row.id, itemFk: row.itemFk}); + let data = { field: this.editedColumn.field, newValue: this.editedColumn.newValue, - lines: this.checked + lines: rowsToEdit }; return this.$http.post('Buys/editLatestBuys', data)