// Fixed #PSTEST-261

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12079 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2012-01-03 16:01:33 +00:00
parent 743fc2d2b8
commit cb02fc29d4
2 changed files with 22 additions and 2 deletions
+6 -1
View File
@@ -86,6 +86,7 @@ class AdminOrdersControllerCore extends AdminController
public function renderForm()
{
parent::renderForm();
unset($this->toolbar_btn['save']);
$this->addJqueryPlugin(array('autocomplete', 'fancybox', 'typewatch'));
$cart = new Cart((int)Tools::getValue('id_cart'));
$this->context->smarty->assign(array(
@@ -95,7 +96,11 @@ class AdminOrdersControllerCore extends AdminController
'currencies' => Currency::getCurrencies(),
'langs' => Language::getLanguages(true, Context::getContext()->shop->id),
'payment_modules' => PaymentModule::getInstalledPaymentModules(),
'order_states' => OrderState::getOrderStates((int)Context::getContext()->cookie->id_lang)));
'order_states' => OrderState::getOrderStates((int)Context::getContext()->cookie->id_lang),
'show_toolbar' => $this->show_toolbar,
'toolbar_btn' => $this->toolbar_btn,
'title' => $this->l('Orders : create order'),
));
$this->content .= $this->context->smarty->fetch('orders/form.tpl');
}