[Rt-commit] r4488 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Fri Feb 3 18:42:10 EST 2006
Author: ruz
Date: Fri Feb 3 18:42:02 2006
New Revision: 4488
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/BuildFormatString
Log:
r1662 at cubic-pc: cubic | 2006-02-04 02:41:15 +0300
* use __Web*__ in format string instead of call to config
this prevent from breakage if config changes
Modified: rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/BuildFormatString
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/BuildFormatString (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/BuildFormatString Fri Feb 3 18:42:02 2006
@@ -59,10 +59,7 @@
</%args>
<%init>
-unless ($Format) {
- $Format = RT->Config->Get('DefaultSearchResultFormat');
-}
-
+$Format ||= RT->Config->Get('DefaultSearchResultFormat');
# All the things we can display in the format string by default
my @fields = qw(
@@ -183,13 +180,11 @@
$column{Suffix} .= "</" . $m->interp->apply_escapes( $Size, 'h' ) . ">";
}
if ( $Link eq "Display" ) {
- $column{Prefix} .=
- "<a HREF=\"" . RT->Config->Get('WebPath') . "/Ticket/Display.html?id=__id__\">";
+ $column{Prefix} .= q{<a HREF="__WebPath__/Ticket/Display.html?id=__id__">};
$column{Suffix} .= "</a>";
}
elsif ( $Link eq "Take" ) {
- $column{Prefix} .= "<a HREF=\"" . RT->Config->Get('WebPath')
- . "/Ticket/Display.html?Action=Take&id=__id__\">";
+ $column{Prefix} .= q{<a HREF="__WebPath__/Ticket/Display.html?Action=Take&id=__id__">};
$column{Suffix} .= "</a>";
}
@@ -239,4 +234,3 @@
return($Format, \@fields, \@seen);
</%init>
-
More information about the Rt-commit
mailing list