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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14599 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-04-12 09:47:20 +00:00
parent 21e4d3f45a
commit 9ca9b3b6d0
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'));