Commit 993a1c53 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 435504: Boolean charts use field descriptions from the DB, making them…

Bug 435504: Boolean charts use field descriptions from the DB, making them english only - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 074f7b58
...@@ -62,8 +62,7 @@ ...@@ -62,8 +62,7 @@
'"value${chartnum}-${rownum}-${colnum}"', '"value${chartnum}-${rownum}-${colnum}"',
'"type${chartnum}-${rownum}-${colnum}"', '"type${chartnum}-${rownum}-${colnum}"',
'field.name', 'field.name',
'field.description', 'type.name',
'type.name',
'type.description', 'type.description',
'"${chartnum}-${rownum}-${newor}"', '"${chartnum}-${rownum}-${newor}"',
'"${chartnum}-${newand}-0"', '"${chartnum}-${newand}-0"',
......
...@@ -74,8 +74,9 @@ ...@@ -74,8 +74,9 @@
<td> <td>
<select name="[% "field${chartnum}-${rownum}-${colnum}" %]"> <select name="[% "field${chartnum}-${rownum}-${colnum}" %]">
[% FOREACH field = fields %] [% FOREACH field = fields %]
<option value="[% field.name %]" <option value="[% field.name %]" [% "selected" IF field.name == col.field %]>
[%- " selected" IF field.name == col.field %]>[% field.description %]</option> [% field_descs.${field.name} || field.description FILTER html %]
</option>
[% END %] [% END %]
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment