diff options
Diffstat (limited to 'rt/lib/RT/CustomField.pm')
-rw-r--r-- | rt/lib/RT/CustomField.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/rt/lib/RT/CustomField.pm b/rt/lib/RT/CustomField.pm index 6b9d57b4d..3940e83e7 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-2016 Best Practical Solutions, LLC # <sales@bestpractical.com> # # (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 ); |