diff --git a/APPL/API2/model_bes_kenmerk.inc b/APPL/API2/model_bes_kenmerk.inc index 1f719adec4..cf074e8511 100644 --- a/APPL/API2/model_bes_kenmerk.inc +++ b/APPL/API2/model_bes_kenmerk.inc @@ -168,7 +168,7 @@ function model_bes_kenmerk(params) this.getPropertyType = function (kenmerkdata) { - var typedata = api2.GET(new model_bes_srtkenmerk(), kenmerkdata.orderpropertytype.id); + var typedata = api2.GET(new model_bes_srtkenmerk({internal: params.internal}), kenmerkdata.orderpropertytype.id); return typedata; } diff --git a/APPL/API2/model_bes_srtkenmerk.inc b/APPL/API2/model_bes_srtkenmerk.inc index c8126ab8da..224c2b8ac3 100644 --- a/APPL/API2/model_bes_srtkenmerk.inc +++ b/APPL/API2/model_bes_srtkenmerk.inc @@ -20,7 +20,7 @@ function model_bes_srtkenmerk() this.table = "bes_srtkenmerk"; this.primary = "bes_srtkenmerk_key"; this.soft_delete = "bes_srtkenmerk_verwijder"; - this.autfunction = "WEB_BESMGT"; + this.autfunction = params.internal?false:"WEB_BESMGT"; this.record_title = L("bes_srtkenmerk"); this.records_title = L("bes_srtkenmerk_m"); diff --git a/APPL/API2/model_cnt_kenmerk.inc b/APPL/API2/model_cnt_kenmerk.inc index 3b0aa50c7c..fefc057d40 100644 --- a/APPL/API2/model_cnt_kenmerk.inc +++ b/APPL/API2/model_cnt_kenmerk.inc @@ -142,7 +142,7 @@ function model_cnt_kenmerk(params) this.getPropertyType = function (kenmerkdata) { - var typedata = api2.GET(new model_cnt_srtkenmerk(), kenmerkdata.contractpropertytype.id); + var typedata = api2.GET(new model_cnt_srtkenmerk({internal: params.internal}), kenmerkdata.contractpropertytype.id); return typedata; } diff --git a/APPL/API2/model_cnt_srtkenmerk.inc b/APPL/API2/model_cnt_srtkenmerk.inc index ff603226ba..48d8beffac 100644 --- a/APPL/API2/model_cnt_srtkenmerk.inc +++ b/APPL/API2/model_cnt_srtkenmerk.inc @@ -20,7 +20,7 @@ function model_cnt_srtkenmerk() this.table = "cnt_srtkenmerk"; this.primary = "cnt_srtkenmerk_key"; this.soft_delete = "cnt_srtkenmerk_verwijder"; - this.autfunction = "WEB_CNTMGT"; + this.autfunction = params.internal?false:"WEB_CNTMGT"; this.record_title = L("cnt_srtkenmerk"); this.records_title = L("cnt_srtkenmerk_m"); diff --git a/APPL/API2/model_ins_kenmerk.inc b/APPL/API2/model_ins_kenmerk.inc index 0d3707722c..6181307954 100644 --- a/APPL/API2/model_ins_kenmerk.inc +++ b/APPL/API2/model_ins_kenmerk.inc @@ -184,7 +184,7 @@ function model_ins_kenmerk(niveau, params) this.getPropertyType = function (kenmerkdata) { - var typedata = api2.GET(new model_ins_srtkenmerk(), kenmerkdata.objectpropertytype.id); + var typedata = api2.GET(new model_ins_srtkenmerk({internal: params.internal}), kenmerkdata.objectpropertytype.id); return typedata; } diff --git a/APPL/API2/model_ins_srtkenmerk.inc b/APPL/API2/model_ins_srtkenmerk.inc index 61f1d03ffd..1f01fb06d5 100644 --- a/APPL/API2/model_ins_srtkenmerk.inc +++ b/APPL/API2/model_ins_srtkenmerk.inc @@ -20,7 +20,7 @@ function model_ins_srtkenmerk() this.table = "ins_srtkenmerk"; this.primary = "ins_srtkenmerk_key"; this.soft_delete = "ins_srtkenmerk_verwijder"; - this.autfunction = "WEB_INSMGT"; + this.autfunction = params.internal?false:"WEB_INSMGT"; this.record_title = L("ins_srtkenmerk"); this.records_title = L("ins_srtkenmerk_m"); diff --git a/APPL/API2/model_res_kenmerk.inc b/APPL/API2/model_res_kenmerk.inc index 69b7738098..5374858bb5 100644 --- a/APPL/API2/model_res_kenmerk.inc +++ b/APPL/API2/model_res_kenmerk.inc @@ -127,7 +127,7 @@ function model_res_kenmerk(params) this.getPropertyType = function (kenmerkdata) { - var typedata = api2.GET(new model_res_srtkenmerk(), kenmerkdata.bookingpropertytype.id); + var typedata = api2.GET(new model_res_srtkenmerk({internal: params.internal}), kenmerkdata.bookingpropertytype.id); return typedata; } diff --git a/APPL/API2/model_res_srtkenmerk.inc b/APPL/API2/model_res_srtkenmerk.inc index c9aefd6f05..58ebc9d00b 100644 --- a/APPL/API2/model_res_srtkenmerk.inc +++ b/APPL/API2/model_res_srtkenmerk.inc @@ -19,7 +19,7 @@ function model_res_srtkenmerk() this.table = "res_srtkenmerk"; this.primary = "res_srtkenmerk_key"; this.soft_delete = "res_srtkenmerk_verwijder"; - this.autfunction = "WEB_RESMGT"; + this.autfunction = params.internal?false:"WEB_RESMGT"; this.record_title = L("mgt_srtkenmerk"); this.records_title = L("mgt_srtkenmerk_m");