Allow changing the case of name of an organisation only

This commit is contained in:
bwilliams committed 2023-10-16 13:30:47 +01:00
1 parent bf2a772566
commit 8cf7370cae
1 file changed
+1 -1
+1 -1
View File
@@ -255,7 +255,7 @@ class OrganisationController extends SimpleController
// Check if name or slug already exists
if (
isset($data['name']) &&
$data['name'] != $organisation->name &&
strtolower($data['name']) != strtolower($organisation->name) &&
$classMapper->getClassMapping('organisation')::findUnique($data['name'], 'name')
) {
$ms->addMessageTranslated('danger', 'ORGANISATION.NAME.IN_USE', $data);