diff --git a/APPL/PDA/melding.asp b/APPL/PDA/melding.asp index 257323b1ae..f82a13245c 100644 --- a/APPL/PDA/melding.asp +++ b/APPL/PDA/melding.asp @@ -573,11 +573,10 @@ if (action != "forward") { ROFIELD("fld", L("lcl_place"), plaats_string, {suppressEmpty: true} ); - if (mld_info.subject != 0) + if (stdm_info.subject != 0) { - var txtreado = 0; RWFIELD("melding_onderwerp", L("lcl_mld_subject"), mld_info.mld_onderwerp - , { pclass: ((mld_info.subject == 2 && (this_mld.canOmsChange || mld_key < 0) && !txtreado)? " required" : "") } + , { pclass: ((stdm_info.subject == 2 && (this_mld.canOmsChange || mld_key < 0))? " required" : "") } ); } @@ -604,6 +603,13 @@ if (action != "forward") } else // Nieuwe { + if (stdm_info.subject != 0) + { + RWFIELD("melding_onderwerp", L("lcl_mld_subject"), mld_info.mld_onderwerp + , { pclass: ((stdm_info.subject == 2 && (this_mld.canOmsChange || mld_key < 0))? " required" : "") } + ); + } + if (stdm_info.freetext > 0) RWFIELD("melding_omschrijving", L("lcl_txt"), "", {multi: true, pclass: (stdm_info.freetext==2 ? "required" : "") });