[Rt-devel] silence a warning in CustomField_Overlay.pm
Mathieu Sauve-Frankel
msf at kisoku.net
Wed May 10 16:30:33 EDT 2006
This diff applies against 3.4.5
--- lib/RT/CustomField_Overlay.pm.orig Thu Sep 22 15:09:22 2005
+++ lib/RT/CustomField_Overlay.pm Wed May 10 16:29:09 2006
@@ -876,10 +876,10 @@ sub AddToObject {
if ( $ObjectCF->Id ) {
return ( 0, $self->loc("That is already the current value") );
}
- my ( $id, $msg ) =
- $ObjectCF->Create( ObjectId => $id, CustomField => $self->Id );
+ my ( $oid, $msg ) =
+ $ObjectCF->Create( ObjectId => $id, CustomField => $self->Id );
- return ( $id, $msg );
+ return ( $oid, $msg );
}
@@ -911,9 +911,9 @@ sub RemoveFromObject {
unless ( $ObjectCF->Id ) {
return ( 0, $self->loc("This custom field does not apply to that object") );
}
- my ( $id, $msg ) = $ObjectCF->Delete;
+ my ( $oid, $msg ) = $ObjectCF->Delete;
- return ( $id, $msg );
+ return ( $oid, $msg );
}
# {{{ AddValueForObject
More information about the Rt-devel
mailing list