From 309b75c2afc95d675f593bf9c4cbf0f40825463d Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Wed, 10 May 2017 13:19:32 +0000 Subject: [PATCH] Bij een REST_POST moet altijd params.isNew gezet worden svn path=/Website/trunk/; revision=33781 --- APPL/API2/model_invoicelines.inc | 2 ++ APPL/API2/model_reportcolumns.inc | 1 + 2 files changed, 3 insertions(+) diff --git a/APPL/API2/model_invoicelines.inc b/APPL/API2/model_invoicelines.inc index 7f53b7d4a3..a2de83c80c 100644 --- a/APPL/API2/model_invoicelines.inc +++ b/APPL/API2/model_invoicelines.inc @@ -147,6 +147,8 @@ model_invoicelines = REST_POST: function (params, jsondata, parent_key) /* new invoiceline */ { + params.isNew = true; + var trackarray = []; var factuur_key = parent_key; var this_fin = fin.func_enabled_factuur(factuur_key); // Wat heb ik zoal aan rechten op deze specifieke factuur diff --git a/APPL/API2/model_reportcolumns.inc b/APPL/API2/model_reportcolumns.inc index efb6cd0726..280763096a 100644 --- a/APPL/API2/model_reportcolumns.inc +++ b/APPL/API2/model_reportcolumns.inc @@ -434,6 +434,7 @@ function model_reportcolumns(usrrap_key, params) // Only internally used by report_clone and _view2columns this._REST_POST = function (params, jsondata, parent_key) /* insert columns */ { + params.isNew = true; if (user.has("WEB_FACTAB") && !jsondata.id) this.fields.expression.readonly = false;