X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FObjectCustomFieldValues.pm;h=4ea660ca5646a41675d087f4e131dd109315172b;hb=5372897f367498972c96f5494e142e6e11b29eb8;hp=527ce7ba0a359527a640a24590a885d33c4fd041;hpb=1c538bfabc2cd31f27067505f0c3d1a46cba6ef0;p=freeside.git diff --git a/rt/lib/RT/ObjectCustomFieldValues.pm b/rt/lib/RT/ObjectCustomFieldValues.pm index 527ce7ba0..4ea660ca5 100644 --- a/rt/lib/RT/ObjectCustomFieldValues.pm +++ b/rt/lib/RT/ObjectCustomFieldValues.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -50,6 +50,7 @@ package RT::ObjectCustomFieldValues; use strict; use warnings; +use 5.010; use base 'RT::SearchBuilder'; @@ -145,7 +146,7 @@ sub HasEntry { return $item if lc $item->Content eq lc $args->{Content}; } else { - if ( ($item->_Value('Content') || '') eq $args->{Content} ) { + if ( ($item->_Value('Content') // '') eq $args->{Content} ) { if ( defined $item->LargeContent ) { return $item if defined $args->{LargeContent}