diff --git a/APPL/API2/api2.inc b/APPL/API2/api2.inc index de4fe1966e..414923cf37 100644 --- a/APPL/API2/api2.inc +++ b/APPL/API2/api2.inc @@ -602,8 +602,13 @@ api2 = { orderbys.push(inc.model.aliasprefix + inc.model.primary); // simpel op joinfield var outer = "(+)"; - if ("outertoggle" in inc && params.filter.scf_outer != "on") - outer = inc.outertoggle.def?"(+)":""; + if ("outertoggle" in inc) + { + if (params.filter.has_scf_outer && params.filter.scf_outer != "on") + outer = ""; + else + outer = inc.outertoggle.def?"(+)":""; + } wheres.push ( model.table + "." + model.primary + "=" + inc.model.table + "." + inc.model.fields[inc.joinfield].dbs + outer); } } diff --git a/APPL/API2/model_fac_functie.inc b/APPL/API2/model_fac_functie.inc index 613b5f28b7..5ada1f050e 100644 --- a/APPL/API2/model_fac_functie.inc +++ b/APPL/API2/model_fac_functie.inc @@ -73,6 +73,14 @@ function model_fac_functie (functie_key, params) "LOV": "0;Globaal;1;Per discipline", "hidden_fld": true }, + "group": { + "dbs": "fac_functie_groep", + "label": L("fac_functie_groep"), + "readonly": true, + "typ": "number", + "LOV": "0;Personal;1;Professional;2;Application management;null;Other", + "hidden_fld": true + }, "nn_discipline": { "dbs": "nn_discipline", //"label": L("fac_functie_omschrijving"), @@ -100,7 +108,7 @@ function model_fac_functie (functie_key, params) this.includes = {"authorization": { "model": new model_fac_groeprechten(params), "joinfield": "fac_functie", - "outertoggle": { def: false, lbl: "Toon alle functies" } + "outertoggle": { def: true, lbl: L("fac_gebruiker_outerfunctie") } }}; } diff --git a/APPL/API2/model_fac_groep.inc b/APPL/API2/model_fac_groep.inc index 3c95db4bfb..196219ead2 100644 --- a/APPL/API2/model_fac_groep.inc +++ b/APPL/API2/model_fac_groep.inc @@ -63,7 +63,7 @@ function model_fac_groep(groep_key, params) = { "model": new model_fac_groeprechten(params), "joinfield": "fac_groep", - outertoggle: { def: false, lbl: "Toon alle groepen" } + outertoggle: { def: true, lbl: L("fac_gebruiker_outergroep") } }; } diff --git a/APPL/API2/model_ins_tab_discipline.inc b/APPL/API2/model_ins_tab_discipline.inc index f3ef2be2c5..eb2e213eeb 100644 --- a/APPL/API2/model_ins_tab_discipline.inc +++ b/APPL/API2/model_ins_tab_discipline.inc @@ -129,7 +129,7 @@ function model_ins_tab_discipline(disc_key, params) this.includes = {"authorization": { "model": new model_fac_groeprechten(params), "joinfield": "ins_discipline", - "outertoggle": { def: false, lbl: "Toon alle vakgroepen/catalogi" } + "outertoggle": { def: true, lbl: L("fac_gebruiker_outerdisc") } }}; } diff --git a/APPL/MGT/fac_edit_groeprechten.asp b/APPL/MGT/fac_edit_groeprechten.asp index c79ac46098..354667e45d 100644 --- a/APPL/MGT/fac_edit_groeprechten.asp +++ b/APPL/MGT/fac_edit_groeprechten.asp @@ -30,7 +30,7 @@ var oRs = Oracle.Execute(sql); var flevel = oRs("fac_functie_min_level").Value; var fdisc = oRs("fac_functie_discipline").Value; if (fdisc) - var disc_key = getQParamInt("ins_discipline"); + var disc_arr_key = getQParamIntArray("ins_discipline"); var fdesc = oRs("fac_functie_omschrijving").Value; var finfo = oRs("fac_functie_info").Value; oRs.Close(); @@ -54,12 +54,10 @@ var sql = "SELECT *" + " WHERE fac_groep_key = " + groep_key + " AND fac_functie_key = " + functie_key; if (fdisc) - sql += " AND ins_discipline_key = " + disc_key; + sql += " AND ins_discipline_key = " + disc_arr_key[0]; var oRs = Oracle.Execute(sql); -var gr_key = -1; if (!oRs.Eof) { - var grkey = oRs("fac_groeprechten_key").Value; var prsread = oRs("fac_gebruiker_prs_level_read").Value; var prswrite = oRs("fac_gebruiker_prs_level_write").Value; var algread = oRs("fac_gebruiker_alg_level_read").Value; @@ -185,17 +183,20 @@ function radioTD(name, LOV, val)
-