Bij een REST_POST moet altijd params.isNew gezet worden

svn path=/Website/trunk/; revision=33781
This commit is contained in:
Jos Groot Lipman
2017-05-10 13:19:32 +00:00
parent 5733b90d74
commit 309b75c2af
2 changed files with 3 additions and 0 deletions

View File

@@ -147,6 +147,8 @@ model_invoicelines =
REST_POST: function (params, jsondata, parent_key) /* new invoiceline */ REST_POST: function (params, jsondata, parent_key) /* new invoiceline */
{ {
params.isNew = true;
var trackarray = []; var trackarray = [];
var factuur_key = parent_key; var factuur_key = parent_key;
var this_fin = fin.func_enabled_factuur(factuur_key); // Wat heb ik zoal aan rechten op deze specifieke factuur var this_fin = fin.func_enabled_factuur(factuur_key); // Wat heb ik zoal aan rechten op deze specifieke factuur

View File

@@ -434,6 +434,7 @@ function model_reportcolumns(usrrap_key, params)
// Only internally used by report_clone and _view2columns // Only internally used by report_clone and _view2columns
this._REST_POST = function (params, jsondata, parent_key) /* insert columns */ this._REST_POST = function (params, jsondata, parent_key) /* insert columns */
{ {
params.isNew = true;
if (user.has("WEB_FACTAB") && !jsondata.id) if (user.has("WEB_FACTAB") && !jsondata.id)
this.fields.expression.readonly = false; this.fields.expression.readonly = false;