File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -76,23 +76,22 @@ static function showForItemtype($type) {
76
76
echo "</strong></th></tr> " ;
77
77
78
78
echo "<tr><td class='genericobject_type_profiles'> " ;
79
- $ rights = [];
80
79
foreach (getAllDatasFromTable (getTableForItemtype ("Profile " )) as $ profile ) {
81
80
$ prof = new Profile ();
82
81
$ prof ->getFromDB ($ profile ['id ' ]);
83
- $ right = self :: getProfileforItemtype ( $ profile [ ' id ' ], $ itemtype );
84
- $ label = $ profile [ ' name ' ];
85
- $ rights [] = [
86
- ' label ' => $ label ,
87
- ' itemtype ' => $ itemtype ,
88
- ' field ' => self :: getProfileNameForItemtype ( $ itemtype ) ,
89
- ' html_field ' => " profile_ " . $ profile [ ' id ' ],
82
+ $ rights = [
83
+ [
84
+ ' label ' => $ profile [ ' name ' ],
85
+ ' itemtype ' => $ itemtype ,
86
+ ' field ' => self :: getProfileNameForItemtype ( $ itemtype) ,
87
+ ' html_field ' => " profile_ " . $ profile [ ' id ' ] ,
88
+ ]
90
89
];
90
+ $ prof ->displayRightsChoiceMatrix (
91
+ $ rights
92
+ );
91
93
}
92
94
93
- $ prof ->displayRightsChoiceMatrix (
94
- $ rights
95
- );
96
95
echo "</td></tr> " ;
97
96
echo "<input type='hidden' name='itemtype' value=' " .$ itemtype ."'> " ;
98
97
You can’t perform that action at this time.
0 commit comments