FSN#37352 Appl beheer: UDR rapport eenvoudiger van test in productie brengen
svn path=/Website/trunk/; revision=32996
This commit is contained in:
@@ -413,7 +413,7 @@ function model_reportcolumns(usrrap_key, params)
|
||||
if (!valid_char.test(jsondata.name))
|
||||
abort_with_warning(L("lcl_rap_column_invalid"));
|
||||
|
||||
if (user.has("WEB_FACTAB") && (jsondata.expression || jsondata.id == -1))
|
||||
if (user.has("WEB_FACTAB") && (jsondata.expression || !jsondata.id))
|
||||
{
|
||||
this.fields.expression.readonly = false;
|
||||
this.fields.name.insertonly = false;
|
||||
@@ -434,7 +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 */
|
||||
{
|
||||
if (user.has("WEB_FACTAB") && jsondata.id == -1)
|
||||
if (user.has("WEB_FACTAB") && !jsondata.id)
|
||||
this.fields.expression.readonly = false;
|
||||
|
||||
var valid_char = /^[_0-9a-zA-Z]+$/;
|
||||
|
||||
Reference in New Issue
Block a user