mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 12:18:54 +02:00
Dont show SI prefix selector for parts without a MeasurementUnit
This commit is contained in:
parent
d32ced7547
commit
fcfab982a8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue