mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 17:08:11 +00:00
check for duplicate folder names
This commit is contained in:
parent
b1a895fb27
commit
ad86df5fc5
|
@ -99,6 +99,13 @@ if(!empty($_POST['notification_groups'])) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check if name already exists in the folder */
|
||||||
|
if(!$settings->_enableDuplicateSubFolderNames) {
|
||||||
|
if($folder->hasSubFolderByName($name)) {
|
||||||
|
UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("subfolder_duplicate_name"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$controller->setParam('folder', $folder);
|
$controller->setParam('folder', $folder);
|
||||||
$controller->setParam('name', $name);
|
$controller->setParam('name', $name);
|
||||||
$controller->setParam('comment', $comment);
|
$controller->setParam('comment', $comment);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user