mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 14:36:13 +00:00
fix title role error
This commit is contained in:
parent
b45191bd04
commit
580510e6b1
@ -174,9 +174,9 @@ class PermissionsGroupController extends Controller
|
||||
$roleProvider = $this->roleProvider;
|
||||
$roleScopesSorted = array();
|
||||
foreach($roleScopes as $roleScope) {
|
||||
|
||||
/* @var $roleScope RoleScope */
|
||||
$title = $roleProvider->getRoleTitle($roleScope->getRole());
|
||||
var_dump($title);
|
||||
$roleScopesSorted[$title][] = $roleScope;
|
||||
}
|
||||
ksort($roleScopesSorted);
|
||||
|
@ -40,9 +40,7 @@ class RoleProvider
|
||||
*
|
||||
* @var array|null
|
||||
*/
|
||||
private $rolesTitlesCache = [];
|
||||
// sf4 check: mis [] au lieu de null
|
||||
// pour éviter `Warning: array_key_exists() expects parameter 2 to be array, null given` L129
|
||||
private $rolesTitlesCache = null;
|
||||
|
||||
/**
|
||||
* Add a role provider
|
||||
|
Loading…
x
Reference in New Issue
Block a user