[-] 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:
1 parent
9353d5a8bc
commit
3a6f44828e
1 file changed
+3
-3
@@ -462,10 +462,10 @@ class ParentOrderControllerCore extends FrontController
|
|||||||
*/
|
*/
|
||||||
protected function _setDefaultCarrierSelection($carriers)
|
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())
|
if ($this->context->cart->update())
|
||||||
return $this->cart->id_carrier;
|
return $this->context->cart->id_carrier;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user