]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1368764 - Component watching relationship constant not exported in template constants
authorDylan William Hardison <dylan@hardison.net>
Wed, 7 Jun 2017 13:28:10 +0000 (09:28 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 7 Jun 2017 13:28:10 +0000 (09:28 -0400)
extensions/ComponentWatching/Extension.pm
extensions/OldBugMove/Extension.pm
extensions/Voting/Extension.pm

index 36dee0e1d9c1863acd9745ec8ed0317728418c36..01d843c7a55db6b16652216bbdeb26cc178498a4 100644 (file)
@@ -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;
 }
 
index d1b9537483d2ba1b36ceb53bf5c7bdcde4ae7bb7..8394f99cf4dd20b0c20a7b2092cefd61c3bd5a0f 100644 (file)
@@ -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};
index 25266778c9d7015618489e75b1959756c3eda9c3..90d4db1d3677cc8fc0b88aad3d0a10aa9f096c29 100644 (file)
@@ -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;