[Rt-commit] [rtir] 02/06: Limit two more queue selectors to the correct constituency

Jesse Vincent jesse at bestpractical.com
Fri Mar 13 01:53:27 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 3fb2e31d502f080e27cdf405867cb0d4edb5d6ec
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Mar 12 21:41:47 2015 -0700

    Limit two more queue selectors to the correct constituency
---
 html/RTIR/Create.html          | 4 ++--
 html/RTIR/Incident/Create.html | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index 970078f..d65dd4d 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -105,8 +105,8 @@
                 Default => $ARGS{'Queue'} || $QueueObj->Id,
                 ShowNullOption => 0,
                 Lifecycle => $QueueObj->Lifecycle,
-                # XXX TODO narrow to the current constituency if the
-                # user wants us to, maybe?
+                LimitToConstituency => $m->{'RTIR_ConstituencyFilter'} ? 1:0,
+                Constituency => $m->{'RTIR_ConstituencyFilter'}
             }
         },
         {
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 099f8e3..d313bb1 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -108,6 +108,8 @@ if ( $ChildObj && !$ChildObj->CurrentUserHasRight('ModifyTicket') ) {
                 Name => 'Queue',
                 Default => $ARGS{'Queue'} || $QueueObj->Id,
                 Lifecycle => RT::IR->lifecycle_incident,
+                LimitToConstituency => $m->{'RTIR_ConstituencyFilter'} ? 1:0,
+                Constituency => $m->{'RTIR_ConstituencyFilter'}
     &>
   </td>
 </tr>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list