FSN#40470 USR rapporten ook goed kunnen kopiëren.
svn path=/Website/trunk/; revision=33843
This commit is contained in:
@@ -71,7 +71,13 @@ function model_reportsx(usrrap_key, rapparams)
|
|||||||
"styling" : { dbs: "fac_usrrap_functie",
|
"styling" : { dbs: "fac_usrrap_functie",
|
||||||
typ: "key",
|
typ: "key",
|
||||||
label: L("lcl_usrrap_styling"),
|
label: L("lcl_usrrap_styling"),
|
||||||
LOV: L("lcl_usrrap_stylingLOV") // 0;on-gestylede;1;gestylede;2;procedure;3;procedure gestyled;8;Via tabelizer;16;mobile;32;UDR Template
|
LOV: L("lcl_usrrap_stylingLOV"), // 0;on-gestylede;1;gestylede;2;procedure;3;procedure gestyled;8;Via tabelizer;16;mobile;32;UDR Template
|
||||||
|
clone: function (xxx_data)
|
||||||
|
{
|
||||||
|
if (xxx_data.styling)
|
||||||
|
xxx_data.styling.id = xxx_data.styling.id & ~32;
|
||||||
|
return (xxx_data.styling);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"urllink" : { dbs: "fac_usrrap_urllink",
|
"urllink" : { dbs: "fac_usrrap_urllink",
|
||||||
typ: "varchar",
|
typ: "varchar",
|
||||||
@@ -246,7 +252,7 @@ function model_reportsx(usrrap_key, rapparams)
|
|||||||
if ("viewname" in rap_data && !this.is_safe_view(rap_data.viewname))
|
if ("viewname" in rap_data && !this.is_safe_view(rap_data.viewname))
|
||||||
this.fields["viewname"].readonly = true;
|
this.fields["viewname"].readonly = true;
|
||||||
|
|
||||||
if (rap_data.styling && rap_data.styling.id & 32) // UDR Template
|
if (!params.cloning && rap_data.styling && rap_data.styling.id & 32) // UDR Template
|
||||||
{
|
{
|
||||||
this.REST_PUT = false; // Niets te updaten, alleen clonen
|
this.REST_PUT = false; // Niets te updaten, alleen clonen
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ function scaffolding_edit(model, scf_params)
|
|||||||
else if (key > 0)
|
else if (key > 0)
|
||||||
{
|
{
|
||||||
user.auth_required_or_abort(model.REST_PUT || model.REST_DELETE);
|
user.auth_required_or_abort(model.REST_PUT || model.REST_DELETE);
|
||||||
var xxx_params = { filter: { id: key } };
|
var xxx_params = { filter: { id: key }, cloning: cloning };
|
||||||
xxx_params.for_edit = true; // dan wordt niet vertaald
|
xxx_params.for_edit = true; // dan wordt niet vertaald
|
||||||
var xxx_array = model.REST_GET(xxx_params);
|
var xxx_array = model.REST_GET(xxx_params);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user