File: 1041_fix-role-selector.patch

package info (click to toggle)
gosa 2.8~git20230203.10abe45%2Bdfsg-1%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,364 kB
  • sloc: php: 32,085; javascript: 10,836; pascal: 3,775; xml: 3,135; sh: 852; python: 162; makefile: 45; perl: 2
file content (16 lines) | stat: -rw-r--r-- 835 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Guido Berhoerster <guido+freiesoftware@berhoerster.name>
Description: Fix role selector when using the default theme
 Add workaround for Matrialize.css which hides <input> elements with type=radio
 unless wrapped in a <label> and followed by a <span> element.
Index: gosa/include/class_acl.inc
===================================================================
--- gosa.orig/include/class_acl.inc
+++ gosa/include/class_acl.inc
@@ -872,6 +872,7 @@ class acl extends plugin
             }else{
                 $option = "<input type='radio' name='selected_role' value='".base64_encode($dn)."'>";
             }
+            $option = "<label>" . $option . "<span></span></label>";
             $data[] = postEncode($dn);
             $lData[] = array('data'=>array($option, $values['cn'], $values['description']));
         }