[Bps-public-commit] r13937 - RT-BugTracker/html/Dist/Elements

ruz at bestpractical.com ruz at bestpractical.com
Wed Jul 9 18:21:30 EDT 2008


Author: ruz
Date: Wed Jul  9 18:21:24 2008
New Revision: 13937

Modified:
   RT-BugTracker/html/Dist/Elements/EditNotes
   RT-BugTracker/html/Dist/Elements/EditNotifyAddresses

Log:
* don't report error when there is no real one

Modified: RT-BugTracker/html/Dist/Elements/EditNotes
==============================================================================
--- RT-BugTracker/html/Dist/Elements/EditNotes	(original)
+++ RT-BugTracker/html/Dist/Elements/EditNotes	Wed Jul  9 18:21:24 2008
@@ -30,6 +30,8 @@
 
     $result = loc("Updated distribution notes");
 } else {
+    return () unless $Queue->FirstAttribute( 'DistributionNotes' );
+
     ($status, $msg) = $Queue->DeleteAttribute( 'DistributionNotes' );
     $RT::Logger->error("Couldn't delete attribute: $msg")
         unless $status;

Modified: RT-BugTracker/html/Dist/Elements/EditNotifyAddresses
==============================================================================
--- RT-BugTracker/html/Dist/Elements/EditNotifyAddresses	(original)
+++ RT-BugTracker/html/Dist/Elements/EditNotifyAddresses	Wed Jul  9 18:21:24 2008
@@ -31,6 +31,8 @@
 
     $result = loc("Updated list of additional addresses RT should notify");
 } else {
+    return () unless $Queue->FirstAttribute( 'NotifyAddresses' );
+
     ($status, $msg) = $Queue->DeleteAttribute( 'NotifyAddresses' );
     $RT::Logger->error("Couldn't delete attribute: $msg")
         unless $status;



More information about the Bps-public-commit mailing list