X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FCustomField.pm;h=67efc4d9055a3b1a2fd53aa065e99d0ecb2ff053;hb=187086c479a09629b7d180eec513fb7657f4e291;hp=6b9d57b4dead01473cdda11087cef0ea5781051e;hpb=026dc7ad72ba972f230b6709e31fa64397d75ad4;p=freeside.git diff --git a/rt/lib/RT/CustomField.pm b/rt/lib/RT/CustomField.pm index 6b9d57b4d..67efc4d90 100644 --- a/rt/lib/RT/CustomField.pm +++ b/rt/lib/RT/CustomField.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -1717,7 +1717,7 @@ sub _CanonicalizeValue { my $self = shift; my $args = shift; - my $type = $self->_Value('Type'); + my $type = $self->__Value('Type'); return 1 unless $type; my $method = '_CanonicalizeValue'. $type; @@ -2362,6 +2362,11 @@ sub __DependsOn { # Custom field values push( @$list, $self->Values ); +# Applications of this CF + my $applied = RT::ObjectCustomFields->new( $self->CurrentUser ); + $applied->LimitToCustomField( $self->Id ); + push @$list, $applied; + # Ticket custom field values my $objs = RT::ObjectCustomFieldValues->new( $self->CurrentUser ); $objs->LimitToCustomField( $self->Id );