[Rt-commit] rt branch, admin_ui, updated. 95ff376789e1368ead75b420a062e6ad29b67451
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Dec 31 01:08:54 EST 2009
The branch, admin_ui has been updated
via 95ff376789e1368ead75b420a062e6ad29b67451 (commit)
from 96c0d83c31683bbc3e0a67f45b9bf468f0d3456f (commit)
Summary of changes:
lib/RT/Model/Queue.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 95ff376789e1368ead75b420a062e6ad29b67451
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Dec 31 14:08:42 2009 +0800
exclude cf values when queue->create
diff --git a/lib/RT/Model/Queue.pm b/lib/RT/Model/Queue.pm
index 67675a4..b5cec3b 100755
--- a/lib/RT/Model/Queue.pm
+++ b/lib/RT/Model/Queue.pm
@@ -256,10 +256,11 @@ sub create {
my $sign = delete $args{'sign'};
my $encrypt = delete $args{'encrypt'};
+ my %args_without_cfs = map { $_ => $args{$_} } grep { ! /^cf_/ } keys %args;
#TODO better input validation
Jifty->handle->begin_transaction();
- my $id = $self->SUPER::create( %args );
+ my $id = $self->SUPER::create( %args_without_cfs );
unless ($id) {
Jifty->handle->rollback();
return ( 0, _('Queue could not be created') );
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list