Skip to content

Commit

Permalink
Merge branch 'release/0.3.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko-M committed Nov 18, 2015
2 parents 5bdc0a6 + 2a46dc9 commit 24d80ce
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public function getCustomersByFacebookId($facebookId)
$customer = Mage::getModel('customer/customer');

$collection = $customer->getCollection()
->addAttributeToSelect('inchoo_socialconnect_ftoken')
->addAttributeToFilter('inchoo_socialconnect_fid', $facebookId)
->setPageSize(1);

Expand Down
1 change: 1 addition & 0 deletions app/code/community/Inchoo/SocialConnect/Helper/Google.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function getCustomersByGoogleId($googleId)
$customer = Mage::getModel('customer/customer');

$collection = $customer->getCollection()
->addAttributeToSelect('inchoo_socialconnect_gtoken')
->addAttributeToFilter('inchoo_socialconnect_gid', $googleId)
->setPageSize(1);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public function getCustomersByLinkedinId($linkedinId)
$customer = Mage::getModel('customer/customer');

$collection = $customer->getCollection()
->addAttributeToSelect('inchoo_socialconnect_ltoken')
->addAttributeToFilter('inchoo_socialconnect_lid', $linkedinId)
->setPageSize(1);

Expand Down
1 change: 1 addition & 0 deletions app/code/community/Inchoo/SocialConnect/Helper/Twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public function getCustomersByTwitterId($twitterId)
$customer = Mage::getModel('customer/customer');

$collection = $customer->getCollection()
->addAttributeToSelect('inchoo_socialconnect_ttoken')
->addAttributeToFilter('inchoo_socialconnect_tid', $twitterId)
->setPageSize(1);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected function _load()
$response = $this->client->api(
'/me',
'GET',
$this->params
array('fields' => implode(',', $this->params))
);

foreach ($response as $key => $value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public function requestAction()
Mage::getSingleton('core/session')->addError($e->getMessage());
Mage::logException($e);

$this->_sessionCleanup();

if(!empty($referer)) {
$this->_redirectUrl($referer);
} else {
Expand Down Expand Up @@ -148,4 +146,4 @@ protected function _connectCallback() {
return $this;
}

}
}
2 changes: 1 addition & 1 deletion app/code/community/Inchoo/SocialConnect/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<config>
<modules>
<Inchoo_SocialConnect>
<version>0.3.6</version>
<version>0.3.7</version>
</Inchoo_SocialConnect>
</modules>
<default>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<div class="fieldset">
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
<h2 class="legend"><?php echo $this->__('Personal Information') ?></h2>
<ul class="form-list">
<li class="fields">
Expand Down
2 changes: 2 additions & 0 deletions modman
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ app/etc/modules/Inchoo_SocialConnect.xml app/etc/module
skin/frontend/base/default/inchoo_socialconnect/ skin/frontend/base/default/inchoo_socialconnect/
app/locale/da_DK/Inchoo_SocialConnect.csv app/locale/da_DK/Inchoo_SocialConnect.csv
app/locale/en_US/Inchoo_SocialConnect.csv app/locale/en_US/Inchoo_SocialConnect.csv
app/locale/es_ES/Inchoo_SocialConnect.csv app/locale/es_ES/Inchoo_SocialConnect.csv
app/locale/sl_SI/Inchoo_SocialConnect.csv app/locale/sl_SI/Inchoo_SocialConnect.csv
app/locale/de_DE/Inchoo_SocialConnect.csv app/locale/de_DE/Inchoo_SocialConnect.csv
app/locale/fr_FR/Inchoo_SocialConnect.csv app/locale/fr_FR/Inchoo_SocialConnect.csv
app/locale/es_MX/Inchoo_SocialConnect.csv app/locale/es_MX/Inchoo_SocialConnect.csv
app/locale/it_IT/Inchoo_SocialConnect.csv app/locale/it_IT/Inchoo_SocialConnect.csv
app/locale/tr_TR/Inchoo_SocialConnect.csv app/locale/tr_TR/Inchoo_SocialConnect.csv

0 comments on commit 24d80ce

Please sign in to comment.