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",
|
||||
typ: "key",
|
||||
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",
|
||||
typ: "varchar",
|
||||
@@ -246,7 +252,7 @@ function model_reportsx(usrrap_key, rapparams)
|
||||
if ("viewname" in rap_data && !this.is_safe_view(rap_data.viewname))
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user