// fix bug view.tpl in AdminSuppliersController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10172 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-11-16 13:35:44 +00:00
parent 4296afbf39
commit 4b858a2bed
2 changed files with 11 additions and 4 deletions
+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()