// Fixed fix
This commit is contained in:
@@ -254,7 +254,9 @@ class OrderCore extends ObjectModel
|
|||||||
public function __construct($id = null, $id_lang = null)
|
public function __construct($id = null, $id_lang = null)
|
||||||
{
|
{
|
||||||
parent::__construct($id, $id_lang);
|
parent::__construct($id, $id_lang);
|
||||||
if ($this->id_customer && Context::getContext()->controller->controller_type != 'admin')
|
|
||||||
|
$is_admin = (is_object(Context::getContext()->controller) && Context::getContext()->controller->controller_type == 'admin');
|
||||||
|
if ($this->id_customer && !$is_admin)
|
||||||
{
|
{
|
||||||
$customer = new Customer((int)($this->id_customer));
|
$customer = new Customer((int)($this->id_customer));
|
||||||
$this->_taxCalculationMethod = Group::getPriceDisplayMethod((int)$customer->id_default_group);
|
$this->_taxCalculationMethod = Group::getPriceDisplayMethod((int)$customer->id_default_group);
|
||||||
|
|||||||
Reference in New Issue
Block a user