Magento DevInc_DailyDeal Infinite Loop Bug

by Kirk Madera

Engineers reusable modular solutions to maintain environments and deployment strategies across teams. Works for food.

DevInc_DailyDeal version 1.1 has a bug which causes an infinite loop. This occurs when a customer
Quote items collection is loaded
checkData is called on each item
This tests the quantity by running it through a setQty method.
setQty fires the sales_quote_item_qty_set_after event.
Dailydeals calls getAllItems from the quote again

Magento DevInc_DailyDeal Infinite Loop Bug

Magento DevInc_DailyDeal Infinite Loop Bug

by Kirk Madera

Engineers reusable modular solutions to maintain environments and deployment strategies across teams. Works for food.

DevInc_DailyDeal version 1.1 has a bug which causes an infinite loop. This occurs when a customer
Quote items collection is loaded
checkData is called on each item
This tests the quantity by running it through a setQty method.
setQty fires the sales_quote_item_qty_set_after event.
Dailydeals calls getAllItems from the quote again