// little fix
This commit is contained in:
@@ -2102,7 +2102,7 @@ class AdminProductsControllerCore extends AdminController
|
||||
$this->_errors[] = 'Unable to load object';
|
||||
else
|
||||
{
|
||||
if (!Shop::isProductAvailable($this->object->id))
|
||||
if ($this->object->id && !Shop::isProductAvailable($this->object->id))
|
||||
$this->_displayUnavailableProductWarning();
|
||||
$this->_displayDraftWarning($this->object->active);
|
||||
$this->{'initForm'.$this->tab_display}($this->object, $languages, $default_language);
|
||||
|
||||
Reference in New Issue
Block a user