diff options
author | lpsolit%gmail.com <> | 2009-08-01 14:01:29 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-08-01 14:01:29 +0000 |
commit | fc102ad32a4869901df804a4ba9f696af47650be (patch) | |
tree | 2fb963cab1fe4534a5bf58bc2b5ed0829d9bef5a | |
parent | Bug 507389: [SECURITY] Users can see all products when editing bugs - Patch b... (diff) | |
download | bugzilla-fc102ad32a4869901df804a4ba9f696af47650be.tar.gz bugzilla-fc102ad32a4869901df804a4ba9f696af47650be.tar.bz2 bugzilla-fc102ad32a4869901df804a4ba9f696af47650be.zip |
The previous fix for bug 507389 was bogus, this one is fine, r=mkanat
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index b7c45511f..b406c21cc 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -131,10 +131,12 @@ [% dontchange FILTER html %] </option> [% END %] - [% IF NOT override_legal_values %] - [% override_legal_values = field.legal_values %] + [% IF override_legal_values %] + [% legal_values = override_legal_values %] + [% ELSE %] + [% legal_values = field.legal_values %] [% END %] - [% FOREACH legal_value = override_legal_values %] + [% FOREACH legal_value = legal_values %] [% SET control_value = legal_value.visibility_value %] [% SET control_field = field.value_field %] <option value="[% legal_value.name FILTER html %]" |