Commit e689237f authored by alexpott's avatar alexpott
Browse files

Issue #2004408 followup by alexpott: Allow modules to alter the result of...

Issue #2004408 followup by alexpott: Allow modules to alter the result of EntityListController::getOperations.
parent 9c173cfe
......@@ -531,7 +531,9 @@ protected function drupalCreateRole(array $permissions, $rid = NULL, $name = NUL
}
// Generate a random label.
if (!isset($name)) {
$name = $this->randomString(8);
// In the role UI role names are trimmed and random string can start or
// end with a space.
$name = trim($this->randomString(8));
}
// Check the all the permissions strings are valid.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment