Bij een REST_POST moet altijd params.isNew gezet worden
svn path=/Website/trunk/; revision=33781
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user