[Rt-commit] r7631 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Mon Apr 23 08:29:00 EDT 2007
Author: ruz
Date: Mon Apr 23 08:28:56 2007
New Revision: 7631
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/ObjectCustomField_Overlay.pm
Log:
r5077 at cubic-pc: cubic | 2007-04-23 15:36:29 +0400
* Create loads the current object in RT so we should emulate this behaviour
when we return id of an existing record
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/ObjectCustomField_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/ObjectCustomField_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/ObjectCustomField_Overlay.pm Mon Apr 23 08:28:56 2007
@@ -70,6 +70,7 @@
$ObjectCFs->LimitToCustomField( $cf->id );
$ObjectCFs->LimitToLookupType( $cf->LookupType );
if ( my $first = $ObjectCFs->First ) {
+ $self->Load( $first->id );
return $first->id;
}
More information about the Rt-commit
mailing list