Allow changing the case of name of an organisation only
This commit is contained in:
@@ -255,7 +255,7 @@ class OrganisationController extends SimpleController
|
|||||||
// Check if name or slug already exists
|
// Check if name or slug already exists
|
||||||
if (
|
if (
|
||||||
isset($data['name']) &&
|
isset($data['name']) &&
|
||||||
$data['name'] != $organisation->name &&
|
strtolower($data['name']) != strtolower($organisation->name) &&
|
||||||
$classMapper->getClassMapping('organisation')::findUnique($data['name'], 'name')
|
$classMapper->getClassMapping('organisation')::findUnique($data['name'], 'name')
|
||||||
) {
|
) {
|
||||||
$ms->addMessageTranslated('danger', 'ORGANISATION.NAME.IN_USE', $data);
|
$ms->addMessageTranslated('danger', 'ORGANISATION.NAME.IN_USE', $data);
|
||||||
|
|||||||
Reference in New Issue
Block a user