[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-925-g9650261

Shawn Moore sartak at bestpractical.com
Mon Sep 27 19:02:53 EDT 2010


The branch, 3.9-trunk has been updated
       via  965026126cfde36f84675b21e11ca0c1e3837fe8 (commit)
      from  a905c285be5e0f3ba1f9f2f61db2bfbf7fa00d56 (commit)

Summary of changes:
 lib/RT/ObjectCustomFieldValue_Overlay.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 965026126cfde36f84675b21e11ca0c1e3837fe8
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Sep 27 19:03:44 2010 -0400

    Avoid undef warnings
    
        Sometimes there is no Type or we can't see it

diff --git a/lib/RT/ObjectCustomFieldValue_Overlay.pm b/lib/RT/ObjectCustomFieldValue_Overlay.pm
index caa7b82..c71f604 100644
--- a/lib/RT/ObjectCustomFieldValue_Overlay.pm
+++ b/lib/RT/ObjectCustomFieldValue_Overlay.pm
@@ -153,7 +153,7 @@ sub LoadByCols {
     if ( $args{CustomField} ) {
         $cf = RT::CustomField->new( $self->CurrentUser );
         $cf->Load( $args{CustomField} );
-        if ( $cf->Type eq 'IPAddressRange' ) {
+        if ( $cf->Type && $cf->Type eq 'IPAddressRange' ) {
 
             my ( $sIP, $eIP ) = $cf->ParseIPRange( $args{'Content'} );
             if ( $sIP && $eIP ) {

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


More information about the Rt-commit mailing list