X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Flib%2FRT%2FObjectTopic.pm;h=732af3e712908feb4350ab33631588fa87b422c6;hb=de9d037528895f7151a9aead6724ce2df95f9586;hp=33646305c9aab3414b3bf23fa925ee81718fdc79;hpb=0ed195595b5c7ea404c8848d9d1881ada4214489;p=freeside.git diff --git a/rt/lib/RT/ObjectTopic.pm b/rt/lib/RT/ObjectTopic.pm index 33646305c..732af3e71 100644 --- a/rt/lib/RT/ObjectTopic.pm +++ b/rt/lib/RT/ObjectTopic.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -212,6 +212,19 @@ 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( RT->SystemUser ); + $obj->Load( $store{ObjectId} ); + $store{ObjectId} = \($obj->UID); + } + return %store; +} + RT::Base->_ImportOverlays(); 1;