Allow part lots to have an null storage location.

Otherwise we loose informations on migration.
This commit is contained in:
Jan Böhmer 2019-08-21 11:58:41 +02:00
parent c7e8fc9642
commit 016c2889ba
4 changed files with 16 additions and 8 deletions

View file

@ -58,6 +58,7 @@ class PartLotType extends AbstractType
$builder->add('storage_location', StructuralEntityType::class, ['class' => Storelocation::class,
'label' => 'part_lot.edit.location',
'required' => false,
'disable_not_selectable' => true,
'attr' => ['class' => 'selectpicker form-control-sm', 'data-live-search' => true]]);