diff --git a/APPL/API2/model_mld_kenmerk.inc b/APPL/API2/model_mld_kenmerk.inc index 5aa3853991..f861f6cff9 100644 --- a/APPL/API2/model_mld_kenmerk.inc +++ b/APPL/API2/model_mld_kenmerk.inc @@ -161,7 +161,7 @@ function model_mld_kenmerk(niveau, params) this.getPropertyType = function (kenmerkdata) { - var typedata = api2.GET(new model_mld_srtkenmerk(), kenmerkdata.issuepropertytype.id); + var typedata = api2.GET(new model_mld_srtkenmerk({internal: params.internal}), kenmerkdata.issuepropertytype.id); return typedata; } diff --git a/APPL/API2/model_mld_srtkenmerk.inc b/APPL/API2/model_mld_srtkenmerk.inc index 21f85687c4..c150b27cf9 100644 --- a/APPL/API2/model_mld_srtkenmerk.inc +++ b/APPL/API2/model_mld_srtkenmerk.inc @@ -13,14 +13,15 @@ %> <% -function model_mld_srtkenmerk() +function model_mld_srtkenmerk(params) { + params = params || {}; this.records_name = "issuepropertytypes"; this.record_name = "issuepropertytype"; this.table = "mld_srtkenmerk"; this.primary = "mld_srtkenmerk_key"; this.soft_delete = "mld_srtkenmerk_verwijder"; - this.autfunction = "WEB_MLDMGT"; + this.autfunction = params.internal?false:"WEB_MLDMGT"; this.record_title = L("mld_srtkenmerk"); this.records_title = L("mld_srtkenmerk_m");