Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
eda44f6e
Commit
eda44f6e
authored
Nov 19, 2013
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 939844: Don't cache template filters when arguments are supplied
r=LpSolit, a=glob
parent
ac6167f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Context.pm
Bugzilla/Template/Context.pm
+2
-1
No files found.
Bugzilla/Template/Context.pm
View file @
eda44f6e
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment