diff options
author | Byron Jones <bjones@mozilla.com> | 2013-11-19 21:51:18 +0800 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-11-19 21:51:18 +0800 |
commit | eda44f6e2d20e02c5637c4b899307c2316c6e27e (patch) | |
tree | 7da73fb571e7757d50b3164415b1b406b05a1990 /Bugzilla/Template | |
parent | ac6167f3a698dc8c142d0808fcd7aaa0f00e1f65 (diff) | |
download | bugs-eda44f6e2d20e02c5637c4b899307c2316c6e27e.tar bugs-eda44f6e2d20e02c5637c4b899307c2316c6e27e.tar.gz bugs-eda44f6e2d20e02c5637c4b899307c2316c6e27e.tar.bz2 bugs-eda44f6e2d20e02c5637c4b899307c2316c6e27e.tar.xz bugs-eda44f6e2d20e02c5637c4b899307c2316c6e27e.zip |
Bug 939844: Don't cache template filters when arguments are supplied
r=LpSolit, a=glob
Diffstat (limited to 'Bugzilla/Template')
-rw-r--r-- | Bugzilla/Template/Context.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Template/Context.pm b/Bugzilla/Template/Context.pm index ce1718e0f..1e75d1d6f 100644 --- a/Bugzilla/Template/Context.pm +++ b/Bugzilla/Template/Context.pm @@ -88,7 +88,8 @@ sub filter { my ($self, $name, $args) = @_; # If we pass an alias for the filter name, the filter code is cached # instead of looking for it at each call. - $self->SUPER::filter($name, $args, $name); + # If the filter has arguments, then we can't cache it. + $self->SUPER::filter($name, $args, $args ? undef : $name); } # We need a DESTROY sub for the same reason that Bugzilla::CGI does. |