From 702e4c78fbb8b47bc8d0047c0004dc4d42672e97 Mon Sep 17 00:00:00 2001 From: Alex Tiehuis Date: Mon, 25 Mar 2019 12:57:02 +0000 Subject: [PATCH] LOGC#57050: Melder die je opgeeft bij vervolgmelding gaat niet goed. svn path=/Website/branches/v2019.1/; revision=41772 --- APPL/MLD/mld_continue.asp | 39 ++++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/APPL/MLD/mld_continue.asp b/APPL/MLD/mld_continue.asp index 99b5b294e4..4401e666f1 100644 --- a/APPL/MLD/mld_continue.asp +++ b/APPL/MLD/mld_continue.asp @@ -16,10 +16,18 @@ <% FCLTHeader.Requires({ plugins: ["suggest", "jQuery"] }); var urole = getQParamSafe("urole"); +var fronto = urole == "fo"; var backo = urole == "bo"; +var minfo = urole == "mi"; +var frontend = (!fronto & !backo & !minfo); + var autfunction = ''; -if (backo) - autfunction = 'WEB_MLDBOF'; +if (fronto) + autfunction = 'WEB_MLDFOF'; +else if (minfo) + autfunction = 'WEB_MLDBAC'; +else if (backo) + autfunction = 'WEB_MLDBOF'; // twijfel - PF else autfunction = 'WEB_MLDUSE'; @@ -131,6 +139,20 @@ var multi = ingesloten.length > 1; <% BLOCK_START("mldContinue", L("lcl_mld_continueblok") + (multi ? "(" + ingesloten.length + " " + L("lcl_complains") + ")" : (mld_info.prefix||"") + ingesloten[0])); + // Melder + if (S("mld_continue_edit_issuer")) + { + FCLTpersoonselector("person", + "sgPerson", + { perslidKey: (multi || frontend) ? user_key : mld_info.melder_key, + label: L("lcl_mld_name"), + fieldNameKey: "person", + moreinfo: backo, + readonly: frontend, + autlevel: this_mld.authparams(autfunction) && this_mld.authparams(autfunction).PRSwritelevel, + required: true + }); + } // Vakgroep FCLTdisciplineselector("disc", "sgDisc", @@ -156,19 +178,6 @@ var multi = ingesloten.length > 1; onChange: "onChangeStdMelding", required: true } ); - // Melder - if (S("mld_continue_edit_issuer")) - { - FCLTpersoonselector("person", - "sgPerson", - { perslidKey: multi? user_key : mld_info.melder_key, - label: L("lcl_mld_name"), - fieldNameKey: "person", - moreinfo: backo, - autlevel: this_mld.authparams(autfunction) && this_mld.authparams(autfunction).PRSwritelevel, - required: true - }); - } // Opmerking die wordt opgeslagen in de oorspronkelijke opmerking // Bij multi worden de opmerking, onderwerp en omschrijving (vervolg) aangevuld met wat je invuld. // Bij 1 melding kun je de huidige opmerking en omschrijving (vervolg) die je in beeld krijgt aanvullen.