// fix bug view.tpl in AdminSuppliersController

This commit is contained in:
lLefevre
2011-11-16 13:35:44 +00:00
parent 3a6d8acf1f
commit 1fc88d3d17
2 changed files with 11 additions and 4 deletions
+7 -2
View File
@@ -24,6 +24,10 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helper/view/view.tpl"}
{block name="override_tpl"}
<h2>{$supplier->name}</h2>
<h3>{l s='Total products:'} {count($products)}</h3>
@@ -61,5 +65,6 @@
</table>
{/if}
{/foreach}
<br /><br />
<a href="{$current}&token={$token}"><img src="../img/admin/arrow2.gif" /> {l s='Back to manufacturer list'}</a><br />
{/block}
@@ -190,11 +190,13 @@ class AdminSuppliersControllerCore extends AdminController
}
}
$this->context->smarty->assign(array(
$this->tpl_view_vars = array(
'supplier' => $this->object,
'products' => $products,
'stock_management' => Configuration::get('PS_STOCK_MANAGEMENT'),
));
);
return parent::initView();
}
public function afterImageUpload()