Bug 33574: Correct pointer for restrict_type.code

Somehow this was missed during QA of bug 31095.. likely during a rebase.

Test plan:
1) Check that manual restriction types are now saved.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-04-20 17:09:50 +01:00 committed by Tomas Cohen Arazi
parent 981eeff7ef
commit d1879136a2
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 4 deletions

View File

@ -59,9 +59,9 @@
[% FOREACH restriction_type IN restriction_types %]
[% IF !restriction_type.is_system %]
[% IF restriction_type.is_default %]
<option value="[% code | html %]" selected>[% PROCESS restriction_type_description %]</option>
<option value="[% restriction_type.code | html %]" selected>[% PROCESS restriction_type_description %]</option>
[% ELSE %]
<option value="[% code | html %]">[% PROCESS restriction_type_description %]</option>
<option value="[% restriction_type.code | html %]">[% PROCESS restriction_type_description %]</option>
[% END %]
[% END %]
[% END %]

View File

@ -1467,9 +1467,9 @@ legend:hover {
[% FOREACH restriction_type IN restriction_types %]
[% IF !restriction_type.is_system %]
[% IF restriction_type.is_default %]
<option value="[% code | html %]" selected>[% PROCESS restriction_type_description %]</option>
<option value="[% restriction_type.code | html %]" selected>[% PROCESS restriction_type_description %]</option>
[% ELSE %]
<option value="[% code | html %]">[% PROCESS restriction_type_description %]</option>
<option value="[% restriction_type.code | html %]">[% PROCESS restriction_type_description %]</option>
[% END %]
[% END %]
[% END %]