[Rt-commit] rt branch, create-action, updated. 360b440a4e8bd012a6ef448af538598772b7ed02
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 1 07:26:00 EDT 2009
The branch, create-action has been updated
via 360b440a4e8bd012a6ef448af538598772b7ed02 (commit)
from e975a7ede3aa2817b488e1a056c7e87ea8109c5b (commit)
Summary of changes:
lib/RT/Model/Ticket.pm | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 360b440a4e8bd012a6ef448af538598772b7ed02
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 1 07:25:45 2009 -0400
Canonicalize the queue name
diff --git a/lib/RT/Model/Ticket.pm b/lib/RT/Model/Ticket.pm
index ccf8e38..04d4f06 100755
--- a/lib/RT/Model/Ticket.pm
+++ b/lib/RT/Model/Ticket.pm
@@ -2555,6 +2555,18 @@ sub acl_equivalence_objects {
}
+sub canonicalize_queue {
+ my $self = shift;
+ my $queue = shift;
+
+ my $queue_obj = RT::Model::Queue->new;
+ $queue_obj->load($queue);
+
+ return $queue_obj->id if $queue_obj->id;
+
+ return undef;
+}
+
1;
=head1 AUTHOR
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list