projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.16
[freeside.git]
/
rt
/
lib
/
RT
/
CustomField.pm
diff --git
a/rt/lib/RT/CustomField.pm
b/rt/lib/RT/CustomField.pm
index
6b9d57b
..
83f8562
100644
(file)
--- a/
rt/lib/RT/CustomField.pm
+++ b/
rt/lib/RT/CustomField.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
5
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
9
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-1717,7
+1717,7
@@
sub _CanonicalizeValue {
my $self = shift;
my $args = shift;
my $self = shift;
my $args = shift;
- my $type = $self->_Value('Type');
+ my $type = $self->_
_
Value('Type');
return 1 unless $type;
my $method = '_CanonicalizeValue'. $type;
return 1 unless $type;
my $method = '_CanonicalizeValue'. $type;
@@
-2362,6
+2362,11
@@
sub __DependsOn {
# Custom field values
push( @$list, $self->Values );
# 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 );
# Ticket custom field values
my $objs = RT::ObjectCustomFieldValues->new( $self->CurrentUser );
$objs->LimitToCustomField( $self->Id );