[Rt-commit] r6230 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu Oct 19 11:27:56 EDT 2006
Author: ruz
Date: Thu Oct 19 11:27:55 2006
New Revision: 6230
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomFieldValue_Overlay.pm
Log:
r3970 at cubic-pc: cubic | 2006-10-19 18:49:27 +0400
* DeleteAttribute takes one argument, not paramhash
* add warning
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomFieldValue_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomFieldValue_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/CustomFieldValue_Overlay.pm Thu Oct 19 11:27:55 2006
@@ -55,7 +55,10 @@
);
}
else {
- $self->DeleteAttribute( Name => 'Category' );
+ my ($status, $msg) = $self->DeleteAttribute( 'Category' );
+ unless ( $status ) {
+ $RT::Logger->warning("Couldn't delete atribute: $msg");
+ }
# return true even if there was no category
return (1, $self->loc('Category unset'));
}
More information about the Rt-commit
mailing list