diff --git a/APPL/API2/model_mld_typeopdr_srtdiscipline.inc b/APPL/API2/model_mld_typeopdr_srtdiscipline.inc index 12a7881bba..828ebf11bd 100644 --- a/APPL/API2/model_mld_typeopdr_srtdiscipline.inc +++ b/APPL/API2/model_mld_typeopdr_srtdiscipline.inc @@ -15,7 +15,7 @@ function model_mld_typeopdr_srtdiscipline() { - this.table = "mld_v_typeopdr_srtdisc"; + this.table = "mld_typeopdr_srtdiscipline"; this.primary = "mld_typeopdr_srtdisc_key"; this.records_name = "mld_typeopdr_srtdisciplines"; this.record_name = "mld_typeopdr_srtdiscipline"; diff --git a/APPL/MLD/mld_melding.asp b/APPL/MLD/mld_melding.asp index 74aa425c17..278ca81bd5 100644 --- a/APPL/MLD/mld_melding.asp +++ b/APPL/MLD/mld_melding.asp @@ -343,8 +343,7 @@ if (mld_key == -1 || copy) if (mld_info.mld_status >= 4 ) { // niet afgewezen(1), ingevoerd(2) of ingezien(3) showbes = mld_info.show_bes; // Heeft voor een gegeven (srt)discipline een vaste waarde // De opdrachttypes behorende bij de srtdiscipline of bij de discipline - sql = "SELECT mld_typeopdr_srtdiscipline_key" - + " , mto.mld_typeopdr_zichtbaarfe" + sql = "SELECT mto.mld_typeopdr_zichtbaarfe" + " FROM ins_srtdiscipline sd" + " , mld_discipline d" + " , mld_typeopdr_srtdiscipline tsd" @@ -355,8 +354,7 @@ if (mld_key == -1 || copy) + " AND tsd.mld_typeopdr_key = mto.mld_typeopdr_key" + " AND d.ins_discipline_key = " + mld_info.disc + " UNION ALL" - + " SELECT mld_typeopdr_srtdiscipline_key" - + " , mto.mld_typeopdr_zichtbaarfe" + + " SELECT mto.mld_typeopdr_zichtbaarfe" + " FROM ins_srtdiscipline sd" + " , mld_discipline d" + " , mld_typeopdr_srtdiscipline tsd"