diff options
author | gerv%gerv.net <> | 2003-06-26 08:22:50 +0200 |
---|---|---|
committer | gerv%gerv.net <> | 2003-06-26 08:22:50 +0200 |
commit | 4f6b75a65628b0d86c760309dd81dd03f5c6d308 (patch) | |
tree | 5363459b06e75bc620ceab9dfd045b0f66b6c27c /Bugzilla/Template.pm | |
parent | da6143f4aae6af35f60b8230b82f649b3b0cbd05 (diff) | |
download | bugzilla-4f6b75a65628b0d86c760309dd81dd03f5c6d308.tar.gz bugzilla-4f6b75a65628b0d86c760309dd81dd03f5c6d308.tar.xz |
Bug 16009 - generic charting. Patch by gerv; r,a=justdave.
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index b83079861..6c3e2161a 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -121,6 +121,13 @@ $Template::Stash::LIST_OPS->{ containsany } = return 0; }; +# Allow us to still get the scalar if we use the list operation ".0" on it, +# as we often do for defaults in query.cgi and other places. +$Template::Stash::SCALAR_OPS->{ 0 } = + sub { + return $_[0]; + }; + # Add a "substr" method to the Template Toolkit's "scalar" object # that returns a substring of a string. $Template::Stash::SCALAR_OPS->{ substr } = |