mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-09 00:38:26 +01:00
Added tests for EntityImporter service
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user