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;
|
break;
|
||||||
}
|
}
|
||||||
if (isset($aDefinitions['CALENDAR_NAME'])) {
|
if (isset($aDefinitions['CALENDAR_NAME'])) {
|
||||||
if ($aDefinitions['CALENDAR_NAME'] != $_POST['name']) {
|
if ($aDefinitions['CALENDAR_NAME'] == $_POST['name']) {
|
||||||
$validated = true;
|
|
||||||
} else {
|
|
||||||
if ($aDefinitions['CALENDAR_NAME'] != $oldName) {
|
|
||||||
$validated = false;
|
$validated = false;
|
||||||
$message = G::loadTranslation('ID_CALENDAR_INVALID_NAME');
|
$message = G::loadTranslation('ID_CALENDAR_INVALID_NAME');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case 'calendarDates':
|
case 'calendarDates':
|
||||||
$validated = false;
|
$validated = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user