mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Show validation errors in SIUnitType
This commit is contained in:
parent
6da2057a7e
commit
59748ecc22
2 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,7 @@ class SIUnitType extends AbstractType implements DataMapperInterface
|
|||
$resolver->setDefaults([
|
||||
'show_prefix' => true,
|
||||
'is_integer' => false,
|
||||
'error_mapping' => [ '.' => 'value']
|
||||
]);
|
||||
|
||||
$resolver->setRequired('unit');
|
||||
|
|
|
@ -43,4 +43,5 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{{ form_errors(form.value) }}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue