// move call method initPack() in AdminProductsController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11475 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-21 12:34:55 +00:00
parent 59146657ab
commit 2b38da2edd
@@ -2106,6 +2106,9 @@ class AdminProductsControllerCore extends AdminController
if ($this->object->id && !Shop::isProductAvailable($this->object->id))
$this->_displayUnavailableProductWarning();
$this->_displayDraftWarning($this->object->active);
$this->initPack($product);
$this->{'initForm'.$this->tab_display}($this->object, $languages, $default_language);
$this->tpl_form_vars['product'] = $this->object;
if ($this->ajax)
@@ -3104,8 +3107,6 @@ class AdminProductsControllerCore extends AdminController
if (!$product->id)
$product->name['class'] .= ' copy2friendlyUrl';
$this->initPack($product);
$images = Image::getImages($this->context->language->id, $product->id);
foreach ($images as $k => $image)