Skip to content

Commit 1e35076

Browse files
author
Stanislav Idolov
authored
ENGCOM-1699: [Backlog] Add resetting of triggerRecollection flag #15522
2 parents 4c59e94 + 8e74137 commit 1e35076

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Quote/Model/Quote.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2363,13 +2363,17 @@ public function merge(Quote $quote)
23632363
* Trigger collect totals after loading, if required
23642364
*
23652365
* @return $this
2366+
* @throws \Exception
23662367
*/
23672368
protected function _afterLoad()
23682369
{
23692370
// collect totals and save me, if required
23702371
if (1 == $this->getData('trigger_recollect')) {
2371-
$this->collectTotals()->save();
2372+
$this->collectTotals()
2373+
->setTriggerRecollect(0)
2374+
->save();
23722375
}
2376+
23732377
return parent::_afterLoad();
23742378
}
23752379

0 commit comments

Comments
 (0)