FSN#36127 Sortering autorisatiefuncties

svn path=/Website/trunk/; revision=28999
This commit is contained in:
Jos Groot Lipman
2016-04-18 15:08:59 +00:00
parent 65728c135d
commit 2d22d89a51
2 changed files with 6 additions and 2 deletions

View File

@@ -57,6 +57,11 @@ function model_fac_functie (functie_key, params)
"readonly": true,
"typ": "varchar"
},
"_sorter": {
"dbs": "CASE WHEN SUBSTR(fac_functie_code, 8, 3) IN ('USE', 'FOF', 'BOF', 'BAC') AND SUBSTR(fac_functie_code, 5, 3) NOT IN ('UUR') THEN 0 ELSE 1 END",
"readonly": true,
"typ": "number"
},
"level": {
"dbs": "fac_functie_min_level",
"label": L("fac_functie_min_level"),

View File

@@ -14,11 +14,9 @@
Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../mgt/mgt_tools.inc" -->
<!-- #include file="../api2/model_fac_functie.inc" -->
<%
var editmode = getQParamInt("editmode", 0);
@@ -60,6 +58,7 @@
],
"orderby": [
"module",
"_sorter",
"name",
"description"
],