diff --git a/app/Traits/Import.php b/app/Traits/Import.php index 15b5b290c..d855dc107 100644 --- a/app/Traits/Import.php +++ b/app/Traits/Import.php @@ -80,7 +80,7 @@ trait Import } } - return (int) $id; + return $id == null ? null : (int) $id; } public function getItemId($row)