[Rt-commit] r7172 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Mon Mar 5 22:42:48 EST 2007
Author: ruz
Date: Mon Mar 5 22:42:48 2007
New Revision: 7172
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Search/Elements/BuildFormatString
Log:
r4700 at cubic-pc: cubic | 2007-03-06 05:36:43 +0300
* move fields to <%ONCE> block
* group fields related to people
* make things a little bit more compact
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 Mon Mar 5 22:42:48 2007
@@ -43,7 +43,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<%args>
+<%ARGS>
$Format => undef
%cfqueues => undef
$Face => undef
@@ -56,56 +56,42 @@
$ColDown => undef
$SelectDisplayColumns => undef
$CurrentDisplayColumns => undef
-</%args>
-<%init>
-
-$Format ||= RT->Config->Get('DefaultSearchResultFormat');
+</%ARGS>
+<%ONCE>
# All the things we can display in the format string by default
my @fields = qw(
- id
- Status
- ExtendedStatus
- Subject
- QueueName
- OwnerName
- Priority
- InitialPriority
- FinalPriority
- Type
- TimeWorked
- TimeLeft
- TimeEstimated
- CreatedBy
- LastUpdatedBy
- Requestors
- Cc
- AdminCc
- Starts
- StartsRelative
- Started
- StartedRelative
- Created
- CreatedRelative
- LastUpdated
- LastUpdatedRelative
- Told
- ToldRelative
- Due
- DueRelative
- Resolved
- ResolvedRelative
- RefersTo
- ReferredToBy
- DependsOn
- DependedOnBy
- MemberOf
- Members
- Parents
- Children
- NEWLINE
+ id QueueName Subject
+ Status ExtendedStatus
+ Type
+
+ OwnerName Requestors Cc AdminCc CreatedBy LastUpdatedBy
+
+ Priority InitialPriority FinalPriority
+
+ TimeWorked TimeLeft TimeEstimated
+
+ Starts StartsRelative
+ Started StartedRelative
+ Created CreatedRelative
+ LastUpdated LastUpdatedRelative
+ Told ToldRelative
+ Due DueRelative
+ Resolved ResolvedRelative
+
+ RefersTo ReferredToBy
+ DependsOn DependedOnBy
+ MemberOf Members
+ Parents Children
+
+ NEWLINE
);
+</%ONCE>
+<%init>
+
+$Format ||= RT->Config->Get('DefaultSearchResultFormat');
+
my $CustomFields = RT::CustomFields->new( $session{'CurrentUser'});
foreach my $id (keys %cfqueues) {
# Gotta load up the $queue object, since queues get stored by name now. my $id
More information about the Rt-commit
mailing list