[-] BO : fixed bug #PSTEST-1144 - carrier image problem

This commit is contained in:
vAugagneur
2012-04-12 09:47:20 +00:00
parent e5b665deb7
commit b2ce1b940f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -174,6 +174,7 @@ class CarrierCore extends ObjectModel
$this->id_tax_rules_group = $this->getIdTaxRulesGroup(Context::getContext());
if ($this->name == '0')
$this->name = Configuration::get('PS_SHOP_NAME');
$this->image_dir = _PS_SHIP_IMG_DIR_;
}
public function add($autodate = true, $null_values = false)
@@ -484,7 +484,7 @@ class AdminCarriersControllerCore extends AdminController
'id_carrier' => (int)$current_carrier->id,
'carrier' => $new_carrier
));
$new_carrier->deleteImage();
$this->postImage($new_carrier->id);
$this->changeZones($new_carrier->id);
$new_carrier->setTaxRulesGroup((int)Tools::getValue('id_tax_rules_group'));