Skip to content
This repository has been archived by the owner on Jan 26, 2018. It is now read-only.

Commit

Permalink
Merge pull request #4 from Magmodules/development
Browse files Browse the repository at this point in the history
Log Fix (company)
  • Loading branch information
Magmodules authored May 18, 2017
2 parents 5909f07 + a6c9479 commit d23b837
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/code/community/Magmodules/Feedbackcompany/Model/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ public function addToLog($type, $sId, $review = '', $res = '', $t = '', $cron =
if (Mage::getStoreConfig('feedbackcompany/log/enabled')) {

$company = isset($review['company']) ? $review['company'] : '';

if (empty($company)) {
$stats = Mage::getModel('feedbackcompany/stats')->loadByStoreId($sId);
$clientId = Mage::getStoreConfig('feedbackcompany/general/client_id', $sId);
$stats = Mage::getModel('feedbackcompany/stats')->getCollection()
->addFieldToFilter('client_id', $clientId)->getFirstItem();
$company = $stats->getCompany();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<config>
<modules>
<Magmodules_Feedbackcompany>
<version>1.5.2</version>
<version>1.5.3</version>
</Magmodules_Feedbackcompany>
</modules>
<global>
Expand Down

0 comments on commit d23b837

Please sign in to comment.