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

Commit

Permalink
Fix error on missing entity type
Browse files Browse the repository at this point in the history
  • Loading branch information
xpoback committed Apr 20, 2016
1 parent e813f66 commit 401313d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/code/community/FACTFinder/Core/Helper/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class FACTFinder_Core_Helper_Search extends Mage_Core_Helper_Abstract

const REQUEST_ID_PREFIX = 'FACTFINDER_';

const DEFAULT_ENTITY_ID_FIELD_NAME = 'entity_id';


/**
* Retrieve query model object
Expand Down Expand Up @@ -98,7 +100,7 @@ public function getIdFieldName()
{
$idFieldName = Mage::getStoreConfig(self::XML_CONFIG_PATH_PRODUCT_IDENTIFIER);
if (!$idFieldName) {
$idFieldName = $this->getEntity()->getIdFieldName();
$idFieldName = self::DEFAULT_ENTITY_ID_FIELD_NAME;
}

return $idFieldName;
Expand Down

0 comments on commit 401313d

Please sign in to comment.