mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-04 22:39:36 +00:00
Fixed partkeepr import with databases that do not feature custom states
This commit is contained in:
parent
b1bf70c531
commit
c60b406157
2 changed files with 5 additions and 2 deletions
|
|
@ -91,7 +91,10 @@ class PKPartImporter
|
|||
$this->setAssociationField($entity, 'partUnit', MeasurementUnit::class, $part['partUnit_id']);
|
||||
}
|
||||
|
||||
$this->setAssociationField($entity, 'partCustomState', MeasurementUnit::class, $part['partCustomState_id']);
|
||||
if (isset($part['partCustomState_id'])) {
|
||||
$this->setAssociationField($entity, 'partCustomState', MeasurementUnit::class,
|
||||
$part['partCustomState_id']);
|
||||
}
|
||||
|
||||
//Create a part lot to store the stock level and location
|
||||
$lot = new PartLot();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue