role/audit: Use role-audit as id instead of role/audit

Since HTML5 nearly any char is allowed in ids, including the slash,
but jQuery doesn't support the slash as part of css selectors...
This commit is contained in:
Johannes Meyer 2021-04-07 14:28:22 +02:00
parent 314ec5256c
commit 5b970c79ad

View File

@ -239,7 +239,7 @@ class RoleController extends AuthBackendController
$this->addControl($header);
$this->addContent(
(new PrivilegeAudit($chosenRole !== null ? [$chosenRole] : $assignedRoles))
->addAttributes(['id' => 'role/audit'])
->addAttributes(['id' => 'role-audit'])
);
}