mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
Added tests for EntityImporter service
This commit is contained in:
parent
945fd988b3
commit
fe5dd065ed
2 changed files with 75 additions and 1 deletions
|
@ -99,7 +99,7 @@ class PartNormalizer implements NormalizerInterface, DenormalizerInterface, Cach
|
|||
$this->normalizeKeys($data);
|
||||
|
||||
//Empty IPN should be null, or we get a constraint error
|
||||
if ($data['ipn'] === '') {
|
||||
if (isset($data['ipn']) && $data['ipn'] === '') {
|
||||
$data['ipn'] = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue