[Rt-commit] [rtir] 02/03: When we have a preferred constituency but no required constituency, bubble it to the top
Jesse Vincent
jesse at bestpractical.com
Wed Mar 25 00:58:59 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit 22b20abcd159d1d5553ad4fe7a73417ed6c8e635
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Tue Mar 24 21:56:11 2015 -0700
When we have a preferred constituency but no required constituency,
bubble it to the top
---
html/RTIR/Elements/SelectRTIRQueue | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/html/RTIR/Elements/SelectRTIRQueue b/html/RTIR/Elements/SelectRTIRQueue
index 5af11c2..220d7d6 100644
--- a/html/RTIR/Elements/SelectRTIRQueue
+++ b/html/RTIR/Elements/SelectRTIRQueue
@@ -125,9 +125,16 @@ if ( not defined $session{$cache_key} ) {
Id => $object->Id,
Name => $object->Name,
Description => $object->_Accessible("Description" => "read") ? $object->Description : undef,
+ Constituency => $object_constituency
};
}
}
+ if ($Constituency) {
+ @{$session{$cache_key}{objects}} = sort {
+ ($b->{'Constituency'} eq $Constituency)
+ cmp ( $a->{'Constituency'} eq $Constituency) }
+ @{$session{$cache_key}{objects}};
+ }
$session{$cache_key}{lastupdated} = time();
}
</%init>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list