<?php
/** @var \WEEEOpen\Tarallo\User $user */
/** @var \WEEEOpen\Tarallo\ProductIncomplete|\WEEEOpen\Tarallo\Product|null $base */

$base = $base ?? null;
/** @var int $importedFrom|null */

$this->layout('main', ['title' => 'New product', 'currentPage' => 'product new']);
$this->insert('newProduct', [
    'base' => $base,
	'importedFrom' => $importedFrom,
]);

<?php
/** @var \WEEEOpen\Tarallo\User $user */
/** @var \WEEEOpen\Tarallo\ProductIncomplete|\WEEEOpen\Tarallo\Product|null $base */
$base = $base ?? null;
/** @var int $importedFrom|null */
$importedFrom = $importedFrom ?? null;

$this->layout('main', ['title' => 'New product', 'currentPage' => 'product new']);
$this->insert('newProduct', [
    'base' => $base,
	'importedFrom' => $importedFrom,
]);

Fix undefined variable $importedFrom when splitting a product from an item
Fix undefined variable $importedFrom when splitting a product from an item
