aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-11-19 21:51:18 +0800
committerByron Jones <bjones@mozilla.com>2013-11-19 21:51:18 +0800
commiteda44f6e2d20e02c5637c4b899307c2316c6e27e (patch)
tree7da73fb571e7757d50b3164415b1b406b05a1990
parentBug 937180: creation_ts of bugs and attachments always at 0 seconds (diff)
downloadbugzilla-eda44f6e2d20e02c5637c4b899307c2316c6e27e.tar.gz
bugzilla-eda44f6e2d20e02c5637c4b899307c2316c6e27e.tar.bz2
bugzilla-eda44f6e2d20e02c5637c4b899307c2316c6e27e.zip
Bug 939844: Don't cache template filters when arguments are supplied
r=LpSolit, a=glob
-rw-r--r--Bugzilla/Template/Context.pm3
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.