Fix für Bug 1118.
# get defaults for account numbers and last numbers
AM->defaultaccounts(\%myconfig, \%$form);
+ $form->{ALL_UNITS} = AM->convertible_units(AM->retrieve_all_units(), 'g');
map { $form->{"defaults_${_}"} = $form->{defaults}->{$_} } keys %{ $form->{defaults} };
<tr>
<th align="right">Gewichtseinheit</th>
- <td colspan="3"><input name="weightunit" size="20" maxlength="5" value="[% HTML.escape(defaults_weightunit) %]"></td>
+ <!-- <td colspan="3"><input name="weightunit" size="20" maxlength="5" value="[% HTML.escape(defaults_weightunit) %]"></td> -->
+ <td>
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'weightunit',
+ default = defaults_weightunit,
+ style = 'size:20; maxength:5',
+ DATA = ALL_UNITS,
+ id_key = 'name',
+ label_key = 'name',
+ -%]
+ </td>
</tr>
</table>
<tr>
<th align="right"><translate>Weight unit</translate></th>
- <td colspan="3"><input name="weightunit" size="20" maxlength="5" value="[% HTML.escape(defaults_weightunit) %]"></td>
+ <!-- <td colspan="3"><input name="weightunit" size="20" maxlength="5" value="[% HTML.escape(defaults_weightunit) %]"></td> -->
+ <td>
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'weightunit',
+ default = defaults_weightunit,
+ style = 'size:20; maxength:5',
+ DATA = ALL_UNITS,
+ id_key = 'name',
+ label_key = 'name',
+ -%]
+ </td>
</tr>
</table>