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

Commit 8135184

Browse files
committed
Merge remote-tracking branch 'remotes/dev/master'
2 parents 9492a97 + d29c773 commit 8135184

File tree

11 files changed

+37
-10
lines changed

11 files changed

+37
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
Current version 1.2.16 is compatible with OroCRM version 1.*
1+
Current version 1.2.17 is compatible with OroCRM version 1.*
2+
3+
- fixed: https://github.com/oroinc/magento-orocrm-bridge/issues/13
4+
5+
## Changelog for 1.2.16
26

37
- fixed version on application config file
48

app/code/community/Oro/Api/Model/Observer/Crm/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function handleResponse(Varien_Event_Observer $observer)
6767
. $session->getData('oro_success_url')
6868
. '"}, 1000)</script>'
6969
)->sendResponse();
70-
exit;
70+
return;
7171
}
7272
}
7373

app/code/community/Oro/Api/Model/Sales/Order/Api.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ protected function getOrderCollection()
209209
array('shipping_firstname' => $shippingFirstnameField, 'shipping_lastname' => $shippingLastnameField)
210210
);
211211

212+
$orderCollection->join(
213+
array('store' => 'core/store'),
214+
'main_table.store_id = store.store_id',
215+
array('website_id' => 'website_id')
216+
);
217+
$orderCollection->addFilterToMap('store_id', 'main_table.store_id');
218+
212219
return $orderCollection;
213220
}
214221

app/code/community/Oro/Api/controllers/Adminhtml/Oro/GatewayController.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,12 @@ public function errorAction()
7070
$response->setBody($this->__('Gateway error.'));
7171
$response->setHttpResponseCode(400);
7272
}
73+
74+
/**
75+
* {@inheritdoc}
76+
*/
77+
protected function _isAllowed()
78+
{
79+
return true;
80+
}
7381
}

app/code/community/Oro/Api/controllers/Adminhtml/Oro/SalesController.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,12 @@ private function _checkCustomer($customerId)
103103

104104
return (bool)$customer->getId();
105105
}
106+
107+
/**
108+
* {@inheritdoc}
109+
*/
110+
protected function _isAllowed()
111+
{
112+
return true;
113+
}
106114
}

app/code/community/Oro/Api/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<config>
2121
<modules>
2222
<Oro_Api>
23-
<version>1.2.16</version>
23+
<version>1.2.18</version>
2424
</Oro_Api>
2525
</modules>
2626
<global>

var/connect/Oro_Api-1.2.16.0.tgz

1.63 KB
Binary file not shown.

var/connect/Oro_Api-1.2.17.0.tgz

39.6 KB
Binary file not shown.

var/connect/Oro_Api-1.2.18.0.tgz

39.6 KB
Binary file not shown.

var/connect/Oro_Api.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<_>
2-
<form_key>59ONeBzjxaYkohs2</form_key>
2+
<form_key>JJydtutwfipSlO40</form_key>
33
<name>Oro_Api</name>
44
<channel>community</channel>
55
<version_ids>
@@ -9,7 +9,7 @@
99
<description>OroCRM Bridge extension adds a couple of improvements to Magento SOAP API v2 in order to expose more shopping cart and customer data.</description>
1010
<license>Open Software License (OSL 3.0)</license>
1111
<license_uri>http://opensource.org/licenses/osl-3.0.php</license_uri>
12-
<version>1.2.16.0</version>
12+
<version>1.2.18.0</version>
1313
<stability>stable</stability>
1414
<notes>OroCRM Bridge extension adds a couple of improvements to Magento SOAP API v2 in order to expose more shopping cart and customer data.</notes>
1515
<authors>
@@ -40,7 +40,7 @@
4040
<max/>
4141
</max>
4242
<files>
43-
<files> </files>
43+
<files> </files>
4444
</files>
4545
</package>
4646
<extension>

0 commit comments

Comments
 (0)