diff --git a/application/forms/Security/RoleForm.php b/application/forms/Security/RoleForm.php index b7773ca8c..a2eaf0ea3 100644 --- a/application/forms/Security/RoleForm.php +++ b/application/forms/Security/RoleForm.php @@ -551,7 +551,7 @@ class RoleForm extends RepositoryForm return false; } - if (($newName = $this->getValue('name')) !== $this->getIdentifier()) { + if ($this->getIdentifier() && ($newName = $this->getValue('name')) !== $this->getIdentifier()) { $this->repository->update( $this->getBaseTable(), ['parent' => $newName],