From 588a499c444df95f86b4bda724687aa7c4682530 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Wed, 16 Jun 2021 12:29:40 +0200 Subject: [PATCH] editLatestsBuys now is called only with id and itemFk --- modules/entry/front/latest-buys/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/entry/front/latest-buys/index.js b/modules/entry/front/latest-buys/index.js index e81b916d1..46b47cccf 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)