FSN#31698 Rapportgenerator fixes: beter/ simpeler clonen
svn path=/Website/trunk/; revision=24673
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user