]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/modules/websites/tools/tools/ldap-sort-in-templates.patch
Add php ldap
[perso/Immae/Config/Nix.git] / nixops / modules / websites / tools / tools / ldap-sort-in-templates.patch
diff --git a/nixops/modules/websites/tools/tools/ldap-sort-in-templates.patch b/nixops/modules/websites/tools/tools/ldap-sort-in-templates.patch
new file mode 100644 (file)
index 0000000..55a1974
--- /dev/null
@@ -0,0 +1,12 @@
+diff -wbBur phpldapadmin-1.2.3.org/lib/TemplateRender.php phpldapadmin-1.2.3/lib/TemplateRender.php
+--- phpldapadmin-1.2.3.org/lib/TemplateRender.php      2012-10-01 10:54:14.000000000 +0400
++++ phpldapadmin-1.2.3/lib/TemplateRender.php  2018-02-02 19:06:45.674760057 +0300
+@@ -321,6 +321,8 @@
+                               $vals = array();
++                              asort($picklistvalues);
++
+                               foreach ($picklistvalues as $key => $values) {
+                                       $display = $args[3];