mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-08 00:08:08 +01:00
Show validation errors in SIUnitType
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user