//fixed bug on carrier wizard when is_free

This commit is contained in:
Vincent Augagneur committed 2013-07-31 18:09:00 +02:00
1 parent e1fa26d002
commit d3b000e72f
1 file changed
+7 -6
@@ -708,12 +708,13 @@ class AdminCarrierWizardControllerCore extends AdminController
$return['has_error'] = true; $return['has_error'] = true;
$return['errors'][] = $this->l('An error occurred while saving carrier zones.'); $return['errors'][] = $this->l('An error occurred while saving carrier zones.');
} }
if (!$this->processRanges((int)$carrier->id)) if (!$carrier->is_free)
{ if (!$this->processRanges((int)$carrier->id))
$return['has_error'] = true; {
$return['errors'][] = $this->l('An error occurred while saving carrier ranges.'); $return['has_error'] = true;
} $return['errors'][] = $this->l('An error occurred while saving carrier ranges.');
}
if (Shop::isFeatureActive() && !$this->updateAssoShop((int)$carrier->id)) if (Shop::isFeatureActive() && !$this->updateAssoShop((int)$carrier->id))
{ {