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

Commit

Permalink
FIX: #126 - corrected detail page campagins +
Browse files Browse the repository at this point in the history
identifier usage (record identifier is different from the one for
request parameter preparation)
  • Loading branch information
tuegeb committed May 13, 2016
1 parent 25fda20 commit 1692116
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function getActiveAdvisorQuestions()
*/
public function getCampaigns()
{
if ($this->_featureAvailable && $this->_campaigns === null && !empty($this->_productIds)) {
if ($this->_featureAvailable && $this->_campaigns === null) {
$this->_campaigns = $this->_getFacade()->getProductCampaigns();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ protected function _getProductNumberParam()
*/
public function getCampaigns()
{
$this->_getFacade()->getProductCampaignAdapter()->makeProductCampaign();
if (!empty($this->_productIds)) {
$this->_getFacade()->getProductCampaignAdapter()->makeProductCampaign();
}

return parent::getCampaigns();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function _loadEntities($printQuery = false, $logQuery = false)
);
}

$idFieldName = Mage::helper('factfinder_campaigns')->getIdFieldName();
$idFieldName = Mage::helper('factfinder/search')->getIdFieldName();

if (!empty($productIds)) {
// add Filter to Query
Expand Down

0 comments on commit 1692116

Please sign in to comment.