diff options
author | lpsolit%gmail.com <> | 2008-12-29 00:02:12 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-12-29 00:02:12 +0000 |
commit | 43a2416049c49a85ce84ede5567889d061a4e946 (patch) | |
tree | e623608c6dce308e6d94a9d3a162c8ff93a95e18 /Bugzilla | |
parent | 4240812eb919847f4a20ecbde9b946a9e8b50038 (diff) | |
download | bugs-43a2416049c49a85ce84ede5567889d061a4e946.tar bugs-43a2416049c49a85ce84ede5567889d061a4e946.tar.gz bugs-43a2416049c49a85ce84ede5567889d061a4e946.tar.bz2 bugs-43a2416049c49a85ce84ede5567889d061a4e946.tar.xz bugs-43a2416049c49a85ce84ede5567889d061a4e946.zip |
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')
-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 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 } = |