Dont show SI prefix selector for parts without a MeasurementUnit

This commit is contained in:
Jan Böhmer 2019-08-26 15:23:04 +02:00
parent d32ced7547
commit fcfab982a8

View file

@ -64,7 +64,7 @@ class SIUnitType extends AbstractType implements DataMapperInterface
$unit = $options['measurement_unit']; $unit = $options['measurement_unit'];
return $unit->isUseSIPrefix(); return $unit->isUseSIPrefix();
} }
return true; return false;
}, },
'is_integer' => function (Options $options) { 'is_integer' => function (Options $options) {
if ($options['measurement_unit'] !== null) { if ($options['measurement_unit'] !== null) {