From ebaaef39493c50b81529ed60766a4addef20469a Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Thu, 25 Aug 2016 10:59:32 +0200 Subject: [PATCH] Add reload to avoid error see BT#8417 --- main/document/upload.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/document/upload.php b/main/document/upload.php index f7fb1b9d01..c6f0d258fb 100755 --- a/main/document/upload.php +++ b/main/document/upload.php @@ -176,9 +176,6 @@ if (empty($document_data['parents'])) { $this_section = SECTION_COURSES; -// Display the header -Display::display_header($nameTools, 'Doc'); - /* Here we do all the work */ $unzip = isset($_POST['unzip']) ? $_POST['unzip'] : null; $index = isset($_POST['index_document']) ? $_POST['index_document'] : null; @@ -195,9 +192,12 @@ if (!empty($_FILES)) { $index, true ); + header('Location: '.api_get_self().'?'.api_get_cidreq().'#tabs-2'); + exit; } -// Actions +// Display the header +Display::display_header($nameTools, 'Doc'); // Link back to the documents overview if ($is_certificate_mode) {