diff --git a/htdocs/website/index.php b/htdocs/website/index.php index b3d5ee7be49..aa24134a6f4 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -321,6 +321,13 @@ if (GETPOST('refreshsite', 'alpha') || GETPOST('refreshsite.x', 'alpha') || GETP } if (GETPOST('refreshpage', 'alpha') && !in_array($action, array('updatecss'))) $action = 'preview'; +if ($action == 'renamefile') { + $action = 'file_manager'; // After actions_linkedfiles, if action were renamefile, we set it to 'file_manager' +} +if ($cancel && $action == 'file_manager') { + $cancel = ''; +} + // Cancel if ($cancel) { @@ -339,8 +346,6 @@ if ($sortorder) $backtopage .= '&sortorder='.$sortorder; include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; $backtopage = $savbacktopage; -if ($action == 'renamefile') $action = 'file_manager'; // After actions_linkedfiles, if action were renamefile, we set it to 'file_manager' - if ($action == 'seteditinline') { dolibarr_set_const($db, 'WEBSITE_EDITINLINE', 1);