diff --git a/modules/entry/front/latest-buys/index.js b/modules/entry/front/latest-buys/index.js index e81b916d13..46b47cccfc 100644 --- a/modules/entry/front/latest-buys/index.js +++ b/modules/entry/front/latest-buys/index.js @@ -59,10 +59,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)