diff --git a/app/Traits/Import.php b/app/Traits/Import.php index 042ce58c8..84440d9cd 100644 --- a/app/Traits/Import.php +++ b/app/Traits/Import.php @@ -84,7 +84,7 @@ trait Import } } - return (int) $id; + return $id == null ? null : (int) $id; } public function getItemId($row)