summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-12-29 01:02:12 +0100
committerlpsolit%gmail.com <>2008-12-29 01:02:12 +0100
commit43a2416049c49a85ce84ede5567889d061a4e946 (patch)
treee623608c6dce308e6d94a9d3a162c8ff93a95e18 /Bugzilla/Template.pm
parent4240812eb919847f4a20ecbde9b946a9e8b50038 (diff)
downloadbugzilla-43a2416049c49a85ce84ede5567889d061a4e946.tar.gz
bugzilla-43a2416049c49a85ce84ede5567889d061a4e946.tar.xz
Bug 465589: Already selected user accounts are no longer displayed when usemenuforusers is enabled and the account has been disabled - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index fbddbb395..3141c8a4c 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -391,6 +391,13 @@ $Template::Stash::LIST_OPS->{ containsany } =
return 0;
};
+# Clone the array reference to leave the original one unaltered.
+$Template::Stash::LIST_OPS->{ clone } =
+ sub {
+ my $list = shift;
+ return [@$list];
+ };
+
# 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 } =