From 477d1a69b86f5631ce67e8ae8183959fae3d105c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 21 May 2021 08:51:47 +0200 Subject: [PATCH] issue splash message --- op/op.DocumentNotify.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/op/op.DocumentNotify.php b/op/op.DocumentNotify.php index 9e061c247..1ce87d163 100644 --- a/op/op.DocumentNotify.php +++ b/op/op.DocumentNotify.php @@ -100,6 +100,7 @@ if ($action == "delnotify"){ UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error")); break; case 0: + $session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_rm_notify'))); // Email user / group, informing them of subscription change. if($notifier) { $notifier->sendDeleteFolderNotifyMail($folder, $user, $obj); @@ -111,6 +112,7 @@ if ($action == "delnotify"){ // add notification else if ($action == "addnotify") { + /* Both $userid and $groupid can be set */ if ($userid > 0) { $res = $document->addNotify($userid, true); switch ($res) { @@ -127,12 +129,11 @@ else if ($action == "addnotify") { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error")); break; case 0: - // Email user / group, informing them of subscription. + $session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_notify'))); if ($notifier){ $obj = $dms->getUser($userid); $notifier->sendNewDocumentNotifyMail($document, $user, $obj); } - break; } } @@ -152,6 +153,7 @@ else if ($action == "addnotify") { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error")); break; case 0: + $session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_notify'))); if ($notifier){ $obj = $dms->getGroup($groupid); $notifier->sendNewDocumentNotifyMail($document, $user, $obj);