[Bps-public-commit] r20209 - in RT-Extension-ReportSpam/html/Callbacks/RT-Extension-ReportSpam/Elements: RT__Ticket RT__Ticket/ColumnMap

ruz at bestpractical.com ruz at bestpractical.com
Fri Dec 11 17:58:16 EST 2009


Author: ruz
Date: Fri Dec 11 17:58:16 2009
New Revision: 20209

Added:
   RT-Extension-ReportSpam/html/Callbacks/RT-Extension-ReportSpam/Elements/
   RT-Extension-ReportSpam/html/Callbacks/RT-Extension-ReportSpam/Elements/RT__Ticket/
   RT-Extension-ReportSpam/html/Callbacks/RT-Extension-ReportSpam/Elements/RT__Ticket/ColumnMap/
   RT-Extension-ReportSpam/html/Callbacks/RT-Extension-ReportSpam/Elements/RT__Ticket/ColumnMap/Once

Log:
* column map callback that add support for ReportSpam column

Added: RT-Extension-ReportSpam/html/Callbacks/RT-Extension-ReportSpam/Elements/RT__Ticket/ColumnMap/Once
==============================================================================
--- (empty file)
+++ RT-Extension-ReportSpam/html/Callbacks/RT-Extension-ReportSpam/Elements/RT__Ticket/ColumnMap/Once	Fri Dec 11 17:58:16 2009
@@ -0,0 +1,14 @@
+<%ARGS>
+$COLUMN_MAP => {}
+</%ARGS>
+<%INIT>
+return $COLUMN_MAP->{'ReportSpam'} = {
+    title     => 'Spam',
+    attribute => '',
+    value     => sub {
+        my $res = $m->scomp('/Ticket/Elements/ReportSpam', id => $_[0]->id);
+        $res =~ s/\n/ /g;
+        return \$res;
+    },
+};
+</%INIT>



More information about the Bps-public-commit mailing list