Skip to content

Commit

Permalink
Add resetting of triggerRecollection flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rogyar committed May 25, 2018
1 parent 8a0fd71 commit bddb976
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/Magento/Quote/Model/Quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -2363,13 +2363,17 @@ public function merge(Quote $quote)
* Trigger collect totals after loading, if required
*
* @return $this
* @throws \Exception
*/
protected function _afterLoad()
{
// collect totals and save me, if required
if (1 == $this->getData('trigger_recollect')) {
$this->collectTotals()->save();
$this->collectTotals()
->setTriggerRecollect(0)
->save();
}

return parent::_afterLoad();
}

Expand Down

0 comments on commit bddb976

Please sign in to comment.