From: Dylan William Hardison Date: Wed, 7 Jun 2017 13:28:10 +0000 (-0400) Subject: Bug 1368764 - Component watching relationship constant not exported in template constants X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57bb45991135c7d802bcf4036f5cc70080c59dcd;p=thirdparty%2Fbugzilla.git Bug 1368764 - Component watching relationship constant not exported in template constants --- diff --git a/extensions/ComponentWatching/Extension.pm b/extensions/ComponentWatching/Extension.pm index 36dee0e1d..01d843c7a 100644 --- a/extensions/ComponentWatching/Extension.pm +++ b/extensions/ComponentWatching/Extension.pm @@ -127,7 +127,7 @@ sub install_update_db { sub template_before_create { my ($self, $args) = @_; my $config = $args->{config}; - my $constants = $config->{CONSTANTS}; + my $constants = $config->{VARIABLES}{constants}; $constants->{REL_COMPONENT_WATCHER} = REL_COMPONENT_WATCHER; } diff --git a/extensions/OldBugMove/Extension.pm b/extensions/OldBugMove/Extension.pm index d1b953748..8394f99cf 100644 --- a/extensions/OldBugMove/Extension.pm +++ b/extensions/OldBugMove/Extension.pm @@ -64,7 +64,7 @@ sub template_before_create { my ($self, $args) = @_; my $config = $args->{config}; - my $constants = $config->{CONSTANTS}; + my $constants = $config->{VARIABLES}{constants}; $constants->{CMT_MOVED_TO} = CMT_MOVED_TO; my $vars = $config->{VARIABLES}; diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm index 25266778c..90d4db1d3 100644 --- a/extensions/Voting/Extension.pm +++ b/extensions/Voting/Extension.pm @@ -215,7 +215,7 @@ sub bug_end_of_update { sub template_before_create { my ($self, $args) = @_; my $config = $args->{config}; - my $constants = $config->{CONSTANTS}; + my $constants = $config->{VARIABLES}{constants}; $constants->{REL_VOTER} = REL_VOTER; $constants->{CMT_POPULAR_VOTES} = CMT_POPULAR_VOTES; $constants->{DEFAULT_VOTES_PER_BUG} = DEFAULT_VOTES_PER_BUG;