[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-21-g60491e9

Kevin Falcone falcone at bestpractical.com
Wed Oct 21 15:58:01 EDT 2009


The branch, 3.8-trunk has been updated
       via  60491e9698361f7d74129ced60edcefc3b1ab57a (commit)
      from  22e95676e0467cd0f0b48a98f362d41b9723b9c9 (commit)

Summary of changes:
 etc/RT_Config.pm.in                        |   13 +++++++++++++
 share/html/SelfService/Elements/MyRequests |    7 +------
 2 files changed, 14 insertions(+), 6 deletions(-)

- Log -----------------------------------------------------------------
commit 60491e9698361f7d74129ced60edcefc3b1ab57a
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Oct 21 15:57:19 2009 -0400

    Fold hardcoded SelfService search format into a config option

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 51a63a0..1933c12 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1209,6 +1209,19 @@ Set ($DefaultSearchResultFormat, qq{
    '<small>__LastUpdatedRelative__</small>',
    '<small>__TimeLeft__</small>'});
 
+=item C<$DefaultSelfServiceSearchResultFormat>
+
+C<$DefaultSelfServiceSearchResultFormat> is the default format of searches displayed in the 
+SelfService interface.
+
+=cut
+
+Set($DefaultSelfServiceSearchResultFormat, qq{
+   '<B><A HREF="__WebPath__/SelfService/Display.html?id=__id__">__id__</a></B>/TITLE:#',
+   '<B><A HREF="__WebPath__/SelfService/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
+   Status,
+   Requestors,
+   OwnerName});
 
 =item C<$SuppressInlineTextFiles>
 
diff --git a/share/html/SelfService/Elements/MyRequests b/share/html/SelfService/Elements/MyRequests
index b3320ed..9eed22b 100755
--- a/share/html/SelfService/Elements/MyRequests
+++ b/share/html/SelfService/Elements/MyRequests
@@ -69,12 +69,7 @@ if ( @status ) {
         . join( ' OR ', map "Status = '$_'", @status )
         . " )";
 }
-my $Format = qq{
-   '<B><A HREF="}. RT->Config->Get('WebPath') .qq{/SelfService/Display.html?id=__id__">__id__</a></B>/TITLE:#',
-   '<B><A HREF="}. RT->Config->Get('WebPath') .qq{/SelfService/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
-   Status,
-   Requestors,
-   OwnerName};
+my $Format = RT->Config->Get('DefaultSelfServiceSearchResultFormat');
 
 </%INIT>
 <%ARGS>

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


More information about the Rt-commit mailing list