FSN#40470 USR rapporten ook goed kunnen kopiëren.

svn path=/Website/trunk/; revision=33843
This commit is contained in:
Jos Groot Lipman
2017-05-15 10:08:01 +00:00
parent 9434fcab00
commit 39aa984e73
2 changed files with 9 additions and 3 deletions

View File

@@ -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
}