Author: mike
Date: 2007-06-01 10:10:26 -0400 (Fri, 01 Jun 2007)
New Revision: 449
Log:
Add links/version info to the top of the notification emails, too (STR #1694)


Modified:
   trunk/phplib/base-str.php

Modified: trunk/phplib/base-str.php
===================================================================
--- trunk/phplib/base-str.php   2007-06-01 14:00:47 UTC (rev 448)
+++ trunk/phplib/base-str.php   2007-06-01 14:10:26 UTC (rev 449)
@@ -236,22 +236,25 @@
   else
     $message = "";
 
-  $message .= "[STR " . substr($STR_STATUS_LONG[$str->status], 4) . "]\n"
-             ."\n"
-             . wordwrap(trim($contents)) . "\n"
-            ."\n"
-            ."Link: ${PROJECT_URL}str.php?L$str->id\n"
-            ."Version: $str->str_version\n";
+  $links = "Link: ${PROJECT_URL}str.php?L$str->id\n"
+         ."Version: $str->str_version\n";
 
   if ($str->fix_version != "")
   {
     // Add fix version
-    $message .= "Fix Version: $str->fix_version";
+    $links .= "Fix Version: $str->fix_version";
     if ($str->fix_revision != 0)
-      $message .= " (r$str->fix_revision)";
-    $message .= "\n";
+      $links .= " (r$str->fix_revision)";
+    $links .= "\n";
   }
 
+  $message .= "[STR " . substr($STR_STATUS_LONG[$str->status], 4) . "]\n"
+            ."$links\n"
+             ."\n"
+             . wordwrap(trim($contents)) . "\n"
+            ."\n"
+            ."$links\n";
+
   // Carbon copy create user, devel/bug lists, and interested addressees...
   if ($str->modify_user != $str->create_user)
     $headers .= "Cc: " . auth_user_email($str->create_user) . "\n";

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to