Commit 0d14b47f authored by jake%acutex.net's avatar jake%acutex.net

Fix for bug 66651 - Include link to attachment in notification mail

Patch by Gavin Shelley <gavins@iplbath.com> r= jake@acutex.net
parent 154179c7
......@@ -717,6 +717,17 @@ sub NewProcessOnePerson ($$$$$$$$$$$) {
my %substs;
# If an attachment was created, then add an URL. (Note: the 'g'lobal
# replace should work with comments with multiple attachments.)
if ( $newcomments =~ /Created an attachment \(/ ) {
my $showattachurlbase =
Param('urlbase') . "showattachment.cgi?attach_id=";
$newcomments =~ s/(Created an attachment \(id=([0-9]+)\))/$1\n --> \(${showattachurlbase}$2\)/g;
}
$person .= Param('emailsuffix');
# 09/13/2000 cyeh@bluemartini.com
# If a bug is changed, don't put the word "Changed" in the subject mail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment