mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-10 17:29:34 +01:00
Dont show SI prefix selector for parts without a MeasurementUnit
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user