From fcfab982a8c170ff0d3e38c210a409038d0d3de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 26 Aug 2019 15:23:04 +0200 Subject: [PATCH] Dont show SI prefix selector for parts without a MeasurementUnit --- src/Form/Type/SIUnitType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/Type/SIUnitType.php b/src/Form/Type/SIUnitType.php index 13ce0c42..91af5d68 100644 --- a/src/Form/Type/SIUnitType.php +++ b/src/Form/Type/SIUnitType.php @@ -64,7 +64,7 @@ class SIUnitType extends AbstractType implements DataMapperInterface $unit = $options['measurement_unit']; return $unit->isUseSIPrefix(); } - return true; + return false; }, 'is_integer' => function (Options $options) { if ($options['measurement_unit'] !== null) {