GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 159 forks source link

Catalog Inventory Stock Save Event Bug #320

Closed bp612 closed 6 years ago

bp612 commented 6 years ago

Inside the handler for the cataloginventory_stock_item_save_after in the Lesti_Fpc_Model_Observer_Save class it checks for changes as follows:

if ($item->getStockStatusChangedAuto()) {
    $this->_getFpc()->clean(sha1('product_' . $item->getProductId()));
}

This is incorrect, getStockStatusChangedAuto is never set. It should be getStockStatusChangedAutomatically

bp612 commented 6 years ago

I'm wrong, ignore this, my bad.