From 75e4e20119ace8aed07298a6c2c94e3d21103fef Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 30 Jan 2020 08:59:27 +0100 Subject: [PATCH] Fix cloud link PHP warnings BT#16249 --- main/document/add_link.php | 7 ++++--- main/document/document.php | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/main/document/add_link.php b/main/document/add_link.php index d3e9358fa9..98624842ba 100644 --- a/main/document/add_link.php +++ b/main/document/add_link.php @@ -1,4 +1,5 @@ '#', 'name' => $document_data['title']]; } } else { @@ -144,7 +145,7 @@ if ($form->validate()) { Display::addFlash(Display::return_message(get_lang('ErrorAddCloudLink'), 'warning', false)); } } - header('Location: document.php?'.api_get_cidreq()); + header('Location: document.php?'.api_get_cidreq().'&id='.$documentId); exit; } } @@ -177,7 +178,7 @@ echo DocumentManager::build_directory_selector( echo '