// little fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11458 b9a71923-0436-4b27-9f14-aed3839534dd
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