BUG-15029 We can`t rename a folder in Documents SOLVED
- Error in position validate "function_exists". - Change of position of validation in file appFolderAjax.php.
This commit is contained in:
@@ -20,12 +20,6 @@ if (! isset ($_REQUEST ['action'])) {
|
|||||||
print G::json_encode ($res);
|
print G::json_encode ($res);
|
||||||
die ();
|
die ();
|
||||||
}
|
}
|
||||||
if (! function_exists ($_REQUEST['action']) || !G::isUserFunction($_REQUEST['action'])) {
|
|
||||||
$res ['success'] = false;
|
|
||||||
$res ['message'] = 'The requested action does not exist';
|
|
||||||
print G::json_encode ($res);
|
|
||||||
die ();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($_REQUEST['action']) != 'rename') {
|
if (($_REQUEST['action']) != 'rename') {
|
||||||
$functionName = $_REQUEST ['action'];
|
$functionName = $_REQUEST ['action'];
|
||||||
@@ -48,6 +42,12 @@ if (($_REQUEST['action']) != 'rename') {
|
|||||||
renameFolder ($oldname, $newname, $uid);
|
renameFolder ($oldname, $newname, $uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (! function_exists ($_REQUEST['action']) || !G::isUserFunction($_REQUEST['action'])) {
|
||||||
|
$res ['success'] = false;
|
||||||
|
$res ['message'] = 'The requested action does not exist';
|
||||||
|
print G::json_encode ($res);
|
||||||
|
die ();
|
||||||
|
}
|
||||||
/////////////////////////////////////////////
|
/////////////////////////////////////////////
|
||||||
|
|
||||||
function renameFolder($oldname, $newname, $uid)
|
function renameFolder($oldname, $newname, $uid)
|
||||||
|
|||||||
Reference in New Issue
Block a user