[Rt-commit] rt branch, 4.2/migrator-fixes, updated. rt-4.2.12-114-g7824eae
Shawn Moore
shawn at bestpractical.com
Sat Mar 12 11:29:59 EST 2016
The branch, 4.2/migrator-fixes has been updated
via 7824eae050244bdd813e0c48c84f9efd91c3c294 (commit)
from 40b9adb822c00a7997e278e4ec4eb2157b66c2d9 (commit)
Summary of changes:
lib/RT/ObjectClass.pm | 12 ++++++++++++
1 file changed, 12 insertions(+)
- Log -----------------------------------------------------------------
commit 7824eae050244bdd813e0c48c84f9efd91c3c294
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Sat Mar 12 16:27:00 2016 +0000
Serialize ObjectClass ObjectId correctly
Otherwise article classes get applied to the wrong queue. This method
is mostly lifted from ObjectCustomField.
Fixes: I#31804
diff --git a/lib/RT/ObjectClass.pm b/lib/RT/ObjectClass.pm
index c51d9d4..b5f9baf 100644
--- a/lib/RT/ObjectClass.pm
+++ b/lib/RT/ObjectClass.pm
@@ -229,6 +229,18 @@ sub FindDependencies {
$deps->Add( out => $obj );
}
+sub Serialize {
+ my $self = shift;
+ my %args = (@_);
+ my %store = $self->SUPER::Serialize(@_);
+
+ if ($store{ObjectId}) {
+ my $obj = $self->ObjectType->new( $self->CurrentUser );
+ $obj->Load( $store{ObjectId} );
+ $store{ObjectId} = \($obj->UID);
+ }
+ return %store;
+}
RT::Base->_ImportOverlays();
-----------------------------------------------------------------------
More information about the rt-commit
mailing list