ARAI#38043 MISSING_COLUMNS na wijzigen rapport gegevens

svn path=/Website/branches/v2016.2/; revision=31161
This commit is contained in:
Jos Groot Lipman
2016-10-20 08:10:28 +00:00
parent 36fbb2c575
commit a875b792c3

View File

@@ -199,7 +199,7 @@ function model_reportsx(usrrap_key, rapparams)
var beztrack = api2.process_includes(params, this, jsondata, the_key);
if (old_view != jsondata.viewname)
if ("viewname" in jsondata && old_view.toUpperCase() != jsondata.viewname.toUpperCase())
{ // Verwijder alle kolommen als er een nieuwe view is ingevuld, maar laat de expressies staan.
var sql = "DELETE fac_usrrap_cols"
+ " WHERE fac_usrrap_cols_expression IS NULL"