mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
fix creation of sub folders (Closes: #469)
This commit is contained in:
parent
e5a56f5eba
commit
ea46cce2df
|
@ -11,6 +11,7 @@
|
||||||
- add norwegian translation
|
- add norwegian translation
|
||||||
- pass configuration to init() of extension (backport from 6.0.x)
|
- pass configuration to init() of extension (backport from 6.0.x)
|
||||||
- place comment of version below version data (remove extra column, backport from 6.0.x)
|
- place comment of version below version data (remove extra column, backport from 6.0.x)
|
||||||
|
- fix creating folders via restapi (Closes: #469)
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 5.1.15
|
Changes in version 5.1.15
|
||||||
|
|
|
@ -412,7 +412,7 @@ function createFolder($request, $response, $args) { /* {{{ */
|
||||||
}
|
}
|
||||||
/* Check if name already exists in the folder */
|
/* Check if name already exists in the folder */
|
||||||
if(!$settings->_enableDuplicateSubFolderNames) {
|
if(!$settings->_enableDuplicateSubFolderNames) {
|
||||||
if($folder->hasSubFolderByName($params['name'])) {
|
if($parent->hasSubFolderByName($params['name'])) {
|
||||||
return $response->withJson(array('success'=>false, 'message'=>getMLText("subfolder_duplicate_name"), 'data'=>''), 400);
|
return $response->withJson(array('success'=>false, 'message'=>getMLText("subfolder_duplicate_name"), 'data'=>''), 400);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user