[-] BO: Fix #PSCFV-7851 - shop logo and name should depend of the order shop and from the context

This commit is contained in:
Rémi Gaillard
2013-02-18 15:43:37 +01:00
parent 96b86a79f3
commit dd6a93d6f2
2 changed files with 14 additions and 9 deletions
@@ -1260,6 +1260,11 @@ class AdminOrdersControllerCore extends AdminController
}
$this->toolbar_title = sprintf($this->l('Order #%1$d (%2$s) - %3$s %4$s'), $order->id, $order->reference, $customer->firstname, $customer->lastname);
if (Shop::isFeatureActive())
{
$shop = new Shop((int)$order->id_shop);
$this->toolbar_title .= ' - '.sprintf($this->l('Shop: %s'), $shop->name);
}
// gets warehouses to ship products, if and only if advanced stock management is activated
$warehouse_list = null;