[Rt-commit] [rtir] 01/01: Add RT::Tickets class to CollectionList calls
Jim Brandt
jbrandt at bestpractical.com
Thu May 8 14:37:05 EDT 2014
This is an automated email from the git hooks/post-receive script.
jbrandt pushed a commit to branch 3.2/fix-collectionlist-calls
in repository rtir.
commit 65350ca5e517f482a86269d719aba2f8f6386e2b
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu May 8 14:33:16 2014 -0400
Add RT::Tickets class to CollectionList calls
59b169d4 converted the deprecated TicketList calls with
CollectionList, however it failed to add the Class parameter
with the value 'RT::Tickets'. This caused failures when
calling CollectionList with a Query but no Collection.
---
html/RTIR/Elements/AttachReports | 1 +
html/RTIR/Elements/ShowChildren | 1 +
html/RTIR/Search/Elements/ShowResults | 1 +
html/RTIR/Tools/Lookup.html | 3 ++-
4 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/html/RTIR/Elements/AttachReports b/html/RTIR/Elements/AttachReports
index 34744fd..e3f0af9 100644
--- a/html/RTIR/Elements/AttachReports
+++ b/html/RTIR/Elements/AttachReports
@@ -52,6 +52,7 @@
Format => $Format,
ShowHeader => 1,
ShowNavigation => 0,
+ Class => 'RT::Tickets',
&>
</&>
<%ARGS>
diff --git a/html/RTIR/Elements/ShowChildren b/html/RTIR/Elements/ShowChildren
index 006314b..f317e39 100644
--- a/html/RTIR/Elements/ShowChildren
+++ b/html/RTIR/Elements/ShowChildren
@@ -64,6 +64,7 @@
ShowHeader => $ShowHeader,
OrderBy => $OrderBy,
ShowNavigation => 0,
+ Class => 'RT::Tickets',
&>
% unless( $children->Count ) {
% if ( $NoTicketsCaption ) {
diff --git a/html/RTIR/Search/Elements/ShowResults b/html/RTIR/Search/Elements/ShowResults
index 565f472..085df09 100644
--- a/html/RTIR/Search/Elements/ShowResults
+++ b/html/RTIR/Search/Elements/ShowResults
@@ -71,6 +71,7 @@ my $result = $m->scomp( '/Elements/CollectionList',
BaseURL => $BaseURL,
ShowNavigation => $ShowNavigation,
AllowSorting => $AllowSorting,
+ Class => 'RT::Tickets',
);
if ( $UpdateSession ) {
diff --git a/html/RTIR/Tools/Lookup.html b/html/RTIR/Tools/Lookup.html
index 464dcf6..b97167b 100644
--- a/html/RTIR/Tools/Lookup.html
+++ b/html/RTIR/Tools/Lookup.html
@@ -50,7 +50,8 @@
% if ( $TicketObj ) {
<&| /Widgets/TitleBox, title => loc("Current [_1]: #[_2]", $TicketType, $ticket), class => 'ticket-info-basics' &>
-<& /Elements/CollectionList, Query => "id = $ticket", Format => RT->Config->Get('RTIRSearchResultFormats')->{$TicketType . 'Default'}, ShowNavigation => 0 &>
+<& /Elements/CollectionList, Query => "id = $ticket", Format => RT->Config->Get('RTIRSearchResultFormats')->{$TicketType . 'Default'}, ShowNavigation => 0,
+ Class => 'RT::Tickets' &>
</&>
% }
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list