PM-527 Calendarios con el mismo nombre
Al realizar la copia de calendarios se pueden crear calendarios con el mismo nombre
This commit is contained in:
@@ -193,17 +193,13 @@ class adminProxy extends HttpProxyController
|
||||
break;
|
||||
}
|
||||
if (isset($aDefinitions['CALENDAR_NAME'])) {
|
||||
if ($aDefinitions['CALENDAR_NAME'] != $_POST['name']) {
|
||||
$validated = true;
|
||||
} else {
|
||||
if ($aDefinitions['CALENDAR_NAME'] != $oldName) {
|
||||
if ($aDefinitions['CALENDAR_NAME'] == $_POST['name']) {
|
||||
$validated = false;
|
||||
$message = G::loadTranslation('ID_CALENDAR_INVALID_NAME');
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'calendarDates':
|
||||
$validated = false;
|
||||
|
||||
Reference in New Issue
Block a user