// fix bug view.tpl in AdminSuppliersController

This commit is contained in:
lLefevre committed 2011-11-16 13:35:44 +00:00
1 parent 3a6d8acf1f
commit 1fc88d3d17
2 files changed
+11 -4

No files matched your search

+7 -2
View File
@@ -24,6 +24,10 @@
* International Registered Trademark & Property of PrestaShop SA * International Registered Trademark & Property of PrestaShop SA
*} *}
{extends file="helper/view/view.tpl"}
{block name="override_tpl"}
<h2>{$supplier->name}</h2> <h2>{$supplier->name}</h2>
<h3>{l s='Total products:'} {count($products)}</h3> <h3>{l s='Total products:'} {count($products)}</h3>
@@ -61,5 +65,6 @@
</table> </table>
{/if} {/if}
{/foreach} {/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, 'supplier' => $this->object,
'products' => $products, 'products' => $products,
'stock_management' => Configuration::get('PS_STOCK_MANAGEMENT'), 'stock_management' => Configuration::get('PS_STOCK_MANAGEMENT'),
)); );
return parent::initView();
} }
public function afterImageUpload() public function afterImageUpload()