FSN#31698 Rapportgenerator fixes: beter/ simpeler clonen

svn path=/Website/trunk/; revision=24673
This commit is contained in:
Jos Groot Lipman
2015-04-02 11:27:00 +00:00
parent 1260eb08ca
commit 3ac43bd745
5 changed files with 63 additions and 59 deletions

View File

@@ -43,7 +43,7 @@ function model_reportsx(usrrap_key, params)
filters: ["id", "name", "description"]
};
this.includes = {"columns": { model: model_reportcolumns,
this.includes = {"columns": { model: new model_reportcolumns(usrrap_key, { internal: true }),
joinfield: "fac_usrrap_key"
}
};
@@ -113,7 +113,7 @@ function model_reportsx(usrrap_key, params)
var json = api2.sql2json (params, sql, this);
if (json.length == 1 && params.include && json[0].columns.length == 0)
{
model_reportcolumns._view2columns(params.filter.id);
this.includes["columns"].model._view2columns(params.filter.id);
var json = api2.sql2json (params, sql, this );
}