Closed (fixed)
Project:
e-Commerce
Version:
6.x-4.x-dev
Component:
ec_store
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2009 at 16:07 UTC
Updated:
5 Apr 2009 at 06:50 UTC
The $txn->address is basically array, but sometimes the store module try to use it as an object.
Possible solution:
Index: sites/all/modules/contributions/ecommerce/ec_store/ec_store.inc
===================================================================
--- sites/all/modules/contributions/ecommerce/ec_store/ec_store.inc (revision)
+++ sites/all/modules/contributions/ecommerce/ec_store/ec_store.inc (working copy)
@@ -18,7 +18,7 @@
return FALSE;
}
foreach ($txn->address as $type => $address) {
- $address->txnid = $txn->txnid;
+ $address['txnid'] = $txn->txnid;
ec_store_transaction_address_save($address, $type);
}
}
@@ -32,7 +32,7 @@
* String, address type(corresponds to type field in database).
*/
function ec_store_transaction_address_save($address, $type) {
- $address->type = $type;
+ $address['type'] = $type;
drupal_write_record('ec_transaction_address', $address, array('txnid', 'type'));
if (!db_affected_rows()) {
Comments
Comment #1
gordon commentedI have fixed this in other places.