[Bps-public-commit] r19391 - in RT-Extension-ExtractCustomFieldValues: lib/RT/Action
falcone at bestpractical.com
falcone at bestpractical.com
Thu Apr 30 22:14:51 EDT 2009
Author: falcone
Date: Thu Apr 30 22:14:50 2009
New Revision: 19391
Modified:
RT-Extension-ExtractCustomFieldValues/ (props changed)
RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm
Log:
r47129 at ketch: falcone | 2009-04-30 22:14:27 -0400
* if you don't have matching CFs, First will return undef and the rest
of this action won't run
Modified: RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm
==============================================================================
--- RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm (original)
+++ RT-Extension-ExtractCustomFieldValues/lib/RT/Action/ExtractCustomFieldValues.pm Thu Apr 30 22:14:50 2009
@@ -115,7 +115,7 @@
$cfs->RowsPerPage(1);
my $cf = $cfs->First;
- if ( $cf->id ) {
+ if ( $cf && $cf->id ) {
$RT::Logger->debug( "Found CF id " . $cf->id );
} elsif ( not $args{Quiet} ) {
$RT::Logger->error( "Couldn't load CF $CustomFieldName!");
More information about the Bps-public-commit
mailing list