diff --git a/APPL/API2/model_reports.inc b/APPL/API2/model_reports.inc index 6cdb6cecfa..9813bf08d0 100644 --- a/APPL/API2/model_reports.inc +++ b/APPL/API2/model_reports.inc @@ -421,7 +421,7 @@ function model_reports_template() // Voltooi model_reports_template voor een bepaald rapport function model_reports(fac_usrrap_key) { - var reportsx = new model_reportsx(fac_usrrap_key, { include: ["columns"], internal: true }); + var reportsx = new model_reportsx(fac_usrrap_key, { include: ["columns"] }); var usrrap = reportsx.data; user.auth_required_or_abort(usrrap); diff --git a/APPL/API2/model_reportsx.inc b/APPL/API2/model_reportsx.inc index b368699f2b..13d0a8b898 100644 --- a/APPL/API2/model_reportsx.inc +++ b/APPL/API2/model_reportsx.inc @@ -51,7 +51,7 @@ function model_reportsx(usrrap_key, params) filters: ["id", "name", "description"] }; - this.includes = {"columns": { model: new model_reportcolumns(usrrap_key, { internal: true }), + this.includes = {"columns": { model: new model_reportcolumns(usrrap_key, { internal: params.internal }), joinfield: "fac_usrrap_key", single_only: true }