[Rt-commit] rt branch, 4.2/display-format-in-before-results-callback, created. rt-4.1.23-1-g290e9cb

? sunnavy sunnavy at bestpractical.com
Mon Sep 23 10:16:15 EDT 2013


The branch, 4.2/display-format-in-before-results-callback has been created
        at  290e9cbf83d13e1110597b00b54285d708c59f28 (commit)

- Log -----------------------------------------------------------------
commit 290e9cbf83d13e1110597b00b54285d708c59f28
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Sep 23 21:50:35 2013 +0800

    support DisplayFormat update in BeforeResults callback
    
    this is useful if we want to manipulate DisplayFormat in extensions, e.g.
    adding some columns automatically.

diff --git a/share/html/Search/Results.html b/share/html/Search/Results.html
index d2856e9..b9d819d 100644
--- a/share/html/Search/Results.html
+++ b/share/html/Search/Results.html
@@ -50,7 +50,8 @@
     LinkRel => \%link_rel &>
 <& /Elements/Tabs &>
 
-% $m->callback( ARGSRef => \%ARGS, CallbackName => 'BeforeResults' );
+% my $DisplayFormat;
+% $m->callback( ARGSRef => \%ARGS, Format => \$Format, DisplayFormat => \$DisplayFormat, CallbackName => 'BeforeResults' );
 
 % unless ($ok) {
 %    $msg =~ s{ at .*? line .*}{}s;
@@ -68,6 +69,7 @@
     Rows => $Rows,
     Page => $Page,
     Format => $Format,
+    DisplayFormat => $DisplayFormat, # in case we set it in callbacks
     Class => 'RT::Tickets',
     BaseURL => $BaseURL,
     SavedSearchId => $ARGS{'SavedSearchId'},

-----------------------------------------------------------------------


More information about the Rt-commit mailing list