[Bps-public-commit] r20109 - RT-Extension-ReportSpam/html/Ticket/Elements

sartak at bestpractical.com sartak at bestpractical.com
Mon Jul 27 21:14:22 EDT 2009


Author: sartak
Date: Mon Jul 27 21:14:21 2009
New Revision: 20109

Modified:
   RT-Extension-ReportSpam/html/Ticket/Elements/ReportSpam

Log:
Delete the ticket when it's reported as spam

Modified: RT-Extension-ReportSpam/html/Ticket/Elements/ReportSpam
==============================================================================
--- RT-Extension-ReportSpam/html/Ticket/Elements/ReportSpam	(original)
+++ RT-Extension-ReportSpam/html/Ticket/Elements/ReportSpam	Mon Jul 27 21:14:21 2009
@@ -32,11 +32,13 @@
         push @$reports, $uid;
     }
     if ( @$reports ) {
+        $ticket->SetStatus('deleted');
         $ticket->SetAttribute(
             Name    => 'SpamReports',
             Content => $reports,
         );
     } else {
+        $ticket->SetStatus('open');
         $ticket->DeleteAttribute(
             Name    => 'SpamReports',
         );



More information about the Bps-public-commit mailing list