[-] BO : fixed bug #PSTEST-1144 - carrier image problem
This commit is contained in:
@@ -174,6 +174,7 @@ class CarrierCore extends ObjectModel
|
|||||||
$this->id_tax_rules_group = $this->getIdTaxRulesGroup(Context::getContext());
|
$this->id_tax_rules_group = $this->getIdTaxRulesGroup(Context::getContext());
|
||||||
if ($this->name == '0')
|
if ($this->name == '0')
|
||||||
$this->name = Configuration::get('PS_SHOP_NAME');
|
$this->name = Configuration::get('PS_SHOP_NAME');
|
||||||
|
$this->image_dir = _PS_SHIP_IMG_DIR_;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function add($autodate = true, $null_values = false)
|
public function add($autodate = true, $null_values = false)
|
||||||
|
|||||||
@@ -484,7 +484,7 @@ class AdminCarriersControllerCore extends AdminController
|
|||||||
'id_carrier' => (int)$current_carrier->id,
|
'id_carrier' => (int)$current_carrier->id,
|
||||||
'carrier' => $new_carrier
|
'carrier' => $new_carrier
|
||||||
));
|
));
|
||||||
|
$new_carrier->deleteImage();
|
||||||
$this->postImage($new_carrier->id);
|
$this->postImage($new_carrier->id);
|
||||||
$this->changeZones($new_carrier->id);
|
$this->changeZones($new_carrier->id);
|
||||||
$new_carrier->setTaxRulesGroup((int)Tools::getValue('id_tax_rules_group'));
|
$new_carrier->setTaxRulesGroup((int)Tools::getValue('id_tax_rules_group'));
|
||||||
|
|||||||
Reference in New Issue
Block a user