[Rt-commit] [rtir] 06/08: Call Name rather than __Value method

Jim Brandt jbrandt at bestpractical.com
Fri Mar 7 14:38:27 EST 2014


This is an automated email from the git hooks/post-receive script.

jbrandt pushed a commit to branch 3.2/get-create-working
in repository rtir.

commit 983efd67e299824eb3c966026bcd327088b41505
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Mar 7 14:04:35 2014 -0500

    Call Name rather than __Value method
    
    Also make Limit call case insensitive.
---
 html/Callbacks/RTIR/Elements/SelectOwner/UpdateObjectList | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/html/Callbacks/RTIR/Elements/SelectOwner/UpdateObjectList b/html/Callbacks/RTIR/Elements/SelectOwner/UpdateObjectList
index 7e7abdc..75a9048 100644
--- a/html/Callbacks/RTIR/Elements/SelectOwner/UpdateObjectList
+++ b/html/Callbacks/RTIR/Elements/SelectOwner/UpdateObjectList
@@ -57,13 +57,14 @@ foreach my $object (@$objects) {
 }
 my @new_objects;
 foreach my $object (@$objects) {
-    next unless ($object->__Value('Name')||'') =~ /^(?:Incidents|Investigations|Incident Reports|Blocks)$/;
+    next unless ($object->Name) =~ /^(?:Incidents|Investigations|Incident Reports|Blocks)$/;
 
     my $queues = RT::Queues->new( RT->SystemUser );
     $queues->Limit(
         FIELD =>'Name',
         OPERATOR => 'STARTSWITH',
-        VALUE  => $object->__Value('Name'),
+        VALUE  => $object->Name,
+        CASESENSITIVE => 0,
     );
     while ( my $queue = $queues->Next ) {
         unshift @new_objects,$queue;

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


More information about the rt-commit mailing list