10353c0828
Apply fix from http://svn.bestpractical.com/cgi-bin/index.cgi/bps/revision?rev=5218 << * get rid of "masks earlier declaration" warnings >> Bump PKGREVISION to 1. Approved by MAINTAINER.
30 lines
881 B
Text
30 lines
881 B
Text
$NetBSD: patch-af,v 1.1 2006/06/03 10:40:34 seb Exp $
|
|
|
|
--- lib/RT/CustomField_Overlay.pm.orig 2005-09-22 19:09:22.000000000 +0000
|
|
+++ lib/RT/CustomField_Overlay.pm
|
|
@@ -876,10 +876,10 @@ sub AddToObject {
|
|
if ( $ObjectCF->Id ) {
|
|
return ( 0, $self->loc("That is already the current value") );
|
|
}
|
|
- my ( $id, $msg ) =
|
|
+ my ( $oid, $msg ) =
|
|
$ObjectCF->Create( ObjectId => $id, CustomField => $self->Id );
|
|
|
|
- return ( $id, $msg );
|
|
+ return ( $oid, $msg );
|
|
}
|
|
|
|
|
|
@@ -911,9 +911,10 @@ sub RemoveFromObject {
|
|
unless ( $ObjectCF->Id ) {
|
|
return ( 0, $self->loc("This custom field does not apply to that object") );
|
|
}
|
|
- my ( $id, $msg ) = $ObjectCF->Delete;
|
|
+ # XXX: Delete doesn't return anything
|
|
+ my ( $oid, $msg ) = $ObjectCF->Delete;
|
|
|
|
- return ( $id, $msg );
|
|
+ return ( $oid, $msg );
|
|
}
|
|
|
|
# {{{ AddValueForObject
|