[Rt-commit] rt branch, 4.0.21-releng, updated. rt-4.0.20-44-gab42446

Alex Vandiver alexmv at bestpractical.com
Wed Jul 2 15:24:02 EDT 2014


The branch, 4.0.21-releng has been updated
       via  ab424465bbdfa3183708652a3ee582c46d206128 (commit)
      from  4a88ea8d1dcf42272ab19d0da52302d68c304a87 (commit)

Summary of changes:
 lib/RT/ObjectCustomFieldValue.pm | 1 -
 1 file changed, 1 deletion(-)

- Log -----------------------------------------------------------------
commit ab424465bbdfa3183708652a3ee582c46d206128
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Jul 2 15:22:02 2014 -0400

    Revert "Provide a better error message for loading OCFVs on an invalid CF"
    
    This reverts commit e688a797cbf842de3c1f6c481313e00e7af788a0.
    
    The CF object may not be readable without context.

diff --git a/lib/RT/ObjectCustomFieldValue.pm b/lib/RT/ObjectCustomFieldValue.pm
index 7162f03..0e63ced 100644
--- a/lib/RT/ObjectCustomFieldValue.pm
+++ b/lib/RT/ObjectCustomFieldValue.pm
@@ -139,7 +139,6 @@ sub LoadByCols {
     if ( $args{CustomField} ) {
         $cf = RT::CustomField->new( $self->CurrentUser );
         $cf->Load( $args{CustomField} );
-        return (0, $self->loc("Cannot load custom field [_1]",$args{CustomField})) unless $cf->id;
 
         my ($ok, $msg) = $cf->_CanonicalizeValue(\%args);
         return ($ok, $msg) unless $ok;

-----------------------------------------------------------------------


More information about the rt-commit mailing list