// More breadcrumbs improvements
This commit is contained in:
@@ -187,6 +187,15 @@ class AdminCustomersControllerCore extends AdminController
|
||||
}
|
||||
}
|
||||
|
||||
public function initToolbarTitle()
|
||||
{
|
||||
parent::initToolbarTitle();
|
||||
|
||||
if ($this->display != 'list')
|
||||
if (($customer = $this->loadObject(true)) && Validate::isLoadedObject($customer))
|
||||
$this->toolbar_title[] = Tools::htmlentitiesUTF8(Tools::substr($customer->firstname, 0, 1).'. '.$customer->firstname);
|
||||
}
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
$this->page_header_toolbar_title = $this->l('Customers');
|
||||
|
||||
@@ -2524,9 +2524,10 @@ class AdminProductsControllerCore extends AdminController
|
||||
public function initToolbarTitle()
|
||||
{
|
||||
parent::initToolbarTitle();
|
||||
if ($product = $this->loadObject(true))
|
||||
if ((bool)$product->id && $this->display != 'list' && isset($this->toolbar_title[2]))
|
||||
$this->toolbar_title[2] = $this->toolbar_title[2].' ('.$this->product_name.')';
|
||||
|
||||
if ($this->display != 'list')
|
||||
if (($product = $this->loadObject(true)) && Validate::isLoadedObject($product))
|
||||
$this->toolbar_title[] = Tools::htmlentitiesUTF8($this->product_name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user