[Bps-public-commit] r13256 - RT-BugTracker/html/Dist/Elements

ruz at bestpractical.com ruz at bestpractical.com
Thu Jun 12 21:22:27 EDT 2008


Author: ruz
Date: Thu Jun 12 21:22:26 2008
New Revision: 13256

Modified:
   RT-BugTracker/html/Dist/Elements/ShowBugs
   RT-BugTracker/html/Dist/Elements/ShowMaintainers

Log:
* fix minor issues of refactoring

Modified: RT-BugTracker/html/Dist/Elements/ShowBugs
==============================================================================
--- RT-BugTracker/html/Dist/Elements/ShowBugs	(original)
+++ RT-BugTracker/html/Dist/Elements/ShowBugs	Thu Jun 12 21:22:26 2008
@@ -16,12 +16,12 @@
 &>
 
 <%INIT>
-unless ( ($Status||'') eq 'Active' || $Queue->IsValidStatus( $Status ) ) {
+unless ( ($Status||'') eq 'Active' || $Queue->IsValidStatus( lc $Status ) ) {
     $m->comp('/Elements/Error', Why => q{no such status as '} . $Status . q{'});
     $m->abort();
 }
 
-my $Query = "Queue = '$Name'";
+my $Query = "Queue = '". $Queue->Name ."'";
 if ( $Status eq 'Active' ) {
     $Query .= " AND ( "
         .join( ' OR ', map "Status = '$_'", $Queue->ActiveStatusArray )
@@ -70,7 +70,7 @@
         . $m->comp('/Elements/QueryString', Query => $Query);
 }
 
-unless ( ($Status||'') eq 'Active' || $Queue->IsValidStatus( $Status ) ) {
+unless ( ($Status||'') eq 'Active' || $Queue->IsValidStatus( lc $Status ) ) {
     $m->comp('/Elements/Error', Why => q{no such status as '} . $Status . q{'});
     $m->abort();
 }

Modified: RT-BugTracker/html/Dist/Elements/ShowMaintainers
==============================================================================
--- RT-BugTracker/html/Dist/Elements/ShowMaintainers	(original)
+++ RT-BugTracker/html/Dist/Elements/ShowMaintainers	Thu Jun 12 21:22:26 2008
@@ -7,7 +7,7 @@
 </%ARGS>
 <%INIT>
 
-my $admincc = $QueueObj->AdminCc->UserMembersObj;
+my $admincc = $Queue->AdminCc->UserMembersObj;
 my $maint = join ", ", map $_->Name, @{$admincc->ItemsArrayRef};
 
 </%INIT>



More information about the Bps-public-commit mailing list