Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
[FACTFINDER-134] Prevent search requests on advanced search #108
Browse files Browse the repository at this point in the history
  • Loading branch information
xpoback committed Mar 4, 2016
1 parent d8ce8a9 commit 0999464
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/code/community/FACTFinder/Core/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ public function manageModules($observer)
*/
public function handleSingleProductRedirect($observer)
{
if (Mage::app()->getRequest()->getControllerName() !== 'result') {
return;
}

$block = Mage::app()->getLayout()->getBlock('search_result_list');
if (!($block instanceof Mage_Catalog_Block_Product_List)) {
return;
Expand Down

0 comments on commit 0999464

Please sign in to comment.