X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FObjectCustomFieldValues.pm;h=4ea660ca5646a41675d087f4e131dd109315172b;hb=740834abbf5434a60a7ded2c0b48430420e995a9;hp=b1cf3caa2f41b8804114b2a30c2095b811cdac2a;hpb=c15f44fcb8de4a64edf8f6d35c2de4392be7464e;p=freeside.git diff --git a/rt/lib/RT/ObjectCustomFieldValues.pm b/rt/lib/RT/ObjectCustomFieldValues.pm index b1cf3caa2..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-2016 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}