Skip to content

Commit

Permalink
[Fixed] Fix for error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
bossanova808 committed Jun 30, 2016
1 parent b137d4d commit 068724e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ This plugin has been tested with Craft 2.5 and Craft Commerce 1.0.1187.

## Changelog

0.1.4
* [Fixed] Fix for error reporting

0.1.3
* [Fixed] Update for Commerce 1.1.1207 changes to addToCart

Expand Down
2 changes: 1 addition & 1 deletion multiadd/MultiAddPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getName()

public function getVersion()
{
return '0.1.3';
return '0.1.4';
}

public function getSchemaVersion()
Expand Down
1 change: 1 addition & 0 deletions multiadd/services/MultiAdd_CartService.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ public function multiAddToCart($order, $items, &$error = '')
}
else{
CommerceDbHelper::rollbackStackedTransaction();
$errors = $lineItem->getAllErrors();
$error = array_pop($errors);
return false;
}
Expand Down
11 changes: 10 additions & 1 deletion releases.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
[
{
"version": "0.1.4",
"downloadUrl": "https://github.com/engram-design/MultiAdd/archive/0.1.4.zip",
"date": "2016-04-27T11:17:28+10:00",
"notes": [
"[Fixed] Fix for error reporting",
]
},
{
"version": "0.1.3",
"downloadUrl": "https://github.com/engram-design/MultiAdd/archive/0.1.3.zip",
"date": "2016-04-27T11:17:28+10:00",
"notes": [
"[Fixed] Updates for addToCart changes in Commerce 1.1.1207",
]
}, {
},
{
"version": "0.1.0",
"downloadUrl": "https://github.com/engram-design/MultiAdd/archive/0.1.0.zip",
"date": "2016-04-27T11:17:28+10:00",
Expand Down

0 comments on commit 068724e

Please sign in to comment.