[Rt-commit] [rtir] 08/09: Move MassageCustomFields callback
Kevin Falcone
falcone at bestpractical.com
Mon Apr 14 12:57:24 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.2/incident-investigation-updates
in repository rtir.
commit c4dca36650c97a1a787e089ea77eb9aac6133452
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Wed Apr 9 17:38:12 2014 -0400
Move MassageCustomFields callback
Since we're no longer using the deprecated
/Ticket/Elements/EditCustomFields, we need to hook in the correct place.
Without this, you get to edit Constituency twice, and one of them will
have all the values and then saving that will get horribly confusing.
During the move, rename arguments and quite a case sensitivity warning.
---
.../{Ticket => }/Elements/EditCustomFields/MassageCustomFields | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/html/Callbacks/RTIR/Ticket/Elements/EditCustomFields/MassageCustomFields b/html/Callbacks/RTIR/Elements/EditCustomFields/MassageCustomFields
similarity index 93%
rename from html/Callbacks/RTIR/Ticket/Elements/EditCustomFields/MassageCustomFields
rename to html/Callbacks/RTIR/Elements/EditCustomFields/MassageCustomFields
index 72543ee..d03fb07 100644
--- a/html/Callbacks/RTIR/Ticket/Elements/EditCustomFields/MassageCustomFields
+++ b/html/Callbacks/RTIR/Elements/EditCustomFields/MassageCustomFields
@@ -47,15 +47,15 @@
%# END BPS TAGGED BLOCK }}}
<%args>
$CustomFields => undef
-$TicketObj => undef
-$QueueObj => undef
+$Object => undef
</%args>
<%init>
-my $queue = $QueueObj || $TicketObj->QueueObj;
+return unless $Object->isa('RT::Ticket');
+my $queue = $Object->QueueObj;
return unless RT::IR->OurQueue( $queue );
# We never want to see the RTIR's custom field Constituency in the edity ui
$CustomFields->_OpenParen('RTIR');
-$CustomFields->Limit( SUBCLAUSE => 'RTIR', ENTRYAGGREGATOR => 'AND', FIELD => 'Name', OPERATOR => '!=', VALUE => 'Constituency');
+$CustomFields->Limit( SUBCLAUSE => 'RTIR', ENTRYAGGREGATOR => 'AND', FIELD => 'Name', OPERATOR => '!=', VALUE => 'Constituency', CASESENSITIVE => 0);
$CustomFields->_CloseParen('RTIR');
</%init>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list