[-] FO : Applied the context to the cart in the ParentOrderController::_setDefaultCarrierSelection() method
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9223 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -462,10 +462,10 @@ class ParentOrderControllerCore extends FrontController
|
||||
*/
|
||||
protected function _setDefaultCarrierSelection($carriers)
|
||||
{
|
||||
$this->cart->id_carrier = Carrier::getDefaultCarrierSelection($carriers, (int)$this->cart->id_carrier);
|
||||
$this->context->cart->id_carrier = Carrier::getDefaultCarrierSelection($carriers, (int)$this->context->cart->id_carrier);
|
||||
|
||||
if ($this->cart->update())
|
||||
return $this->cart->id_carrier;
|
||||
if ($this->context->cart->update())
|
||||
return $this->context->cart->id_carrier;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user