[Rt-commit] [rtir] 05/06: undef protection
Jesse Vincent
jesse at bestpractical.com
Wed Mar 25 03:34:15 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 0ad9b4e68fda54a050f3f4c750766d4934980d3a
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Wed Mar 25 00:11:19 2015 -0700
undef protection
---
html/RTIR/Incident/Create.html | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 6d837b6..99e715a 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -314,7 +314,7 @@ $m->callback(
);
-my $constituency = $m->{'RTIR_ConstituencyFilter'};
+my $constituency = $m->{'RTIR_ConstituencyFilter'} || '';
for my $related_ticket ($ChildObj, $SplitObj) {
@@ -337,8 +337,7 @@ my $QueueObj;
my $collection = RT::Queues->new($session{'CurrentUser'});
$collection->Limit(FIELD => 'Lifecycle', VALUE => RT::IR->lifecycle_incident);
while (my $queue = $collection->Next) {
- if (($queue->FirstCustomFieldValue('RTIR Constituency') ||'')
- eq $constituency) {
+ if ((RT::IR->ConstituencyFor($queue)||'') eq ($constituency||'')) {
$QueueObj = $queue;
last;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list