From f0c756e094cf46f2497473b3601bd9534439016b Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 9 May 2005 22:14:09 +0000 Subject: [PATCH] If 'replyText' is set when a version is deleted include this in the email to the maintainers list. --- include/version.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/version.php b/include/version.php index 0f20135..e2b0839 100644 --- a/include/version.php +++ b/include/version.php @@ -337,6 +337,14 @@ class Version { break; case "delete": $sSubject = "Version ".$this->sName." of ".$oApp->sName." has been deleted by ".$_SESSION['current']->sRealname; + + /* if replyText is set we should report the reason the application was deleted */ + if($_REQUEST['replyText']) + { + $sMsg .= "Reason given:\n"; + $sMsg .= $_REQUEST['replyText']."\n"; /* append the reply text, if there is any */ + } + addmsg("Version deleted.", "green"); break; }