[Rt-commit] rt branch, 4.2/migrator-fixes, repushed
Shawn Moore
shawn at bestpractical.com
Sat Mar 12 11:58:47 EST 2016
The branch 4.2/migrator-fixes was deleted and repushed:
was 7824eae050244bdd813e0c48c84f9efd91c3c294
now 152c90c600c19cf470e9202b21b1cbb82a100072
-: ------- > 1: 50dea85 add AddRight calls to 4.0.1 upgrade step to prevent error message due to failure to canonicalize rights
-: ------- > 2: 3b8ae5b Update detection of find version in configure
1: 7824eae ! 3: 1cac7d3 Serialize ObjectClass ObjectId using indirection
@@ -1,9 +1,11 @@
Author: Shawn M Moore <shawn at bestpractical.com>
- Serialize ObjectClass ObjectId correctly
+ Serialize ObjectClass ObjectId using indirection
- Otherwise article classes get applied to the wrong queue. This method
- is mostly lifted from ObjectCustomField.
+ Otherwise article classes get applied to the wrong queue (the
+ one which happens to have had the same ID as one in the database
+ being serialized). This method is mostly lifted from
+ ObjectCustomField.
Fixes: I#31804
@@ -20,7 +22,7 @@
+ my %store = $self->SUPER::Serialize(@_);
+
+ if ($store{ObjectId}) {
-+ my $obj = $self->ObjectType->new( $self->CurrentUser );
++ my $obj = $self->ObjectType->new( RT->SystemUser );
+ $obj->Load( $store{ObjectId} );
+ $store{ObjectId} = \($obj->UID);
+ }
@@ -29,3 +31,4 @@
RT::Base->_ImportOverlays();
+
-: ------- > 4: 06c4c43 Serialize ObjectScrip ObjectId using indirection
-: ------- > 5: 152c90c Serialize ObjectTopic ObjectId using indirection
More information about the rt-commit
mailing list