Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.0.4
-
Component/s: None
-
Labels:None
Description
To reproduce:
- Add CWP module, server, and server group
- Create package with the server group
- Remove server from server group
- Assign the package to an order form
- Try to error the package and receive a fatal error
In the model OrderOrders::add() replace:
if (empty($service_ids)) { return; }
With
if (empty($service_ids)) { if (($errors = $this->Services->errors())) { $this->Input->setErrors($errors); } return; }
Update the controller Checkout::createOrder() method replace:
// Get invoice collection $presenter = $this->Invoices->getPresenter($order->invoice_id); $collection = $presenter->collection(); // Add affiliate referral $affiliate_code = isset($_COOKIE['affiliate_code']) ? $_COOKIE['affiliate_code'] : null; if (!empty($order) && !empty($affiliate_code)) {
with
// Add affiliate referral $affiliate_code = isset($_COOKIE['affiliate_code']) ? $_COOKIE['affiliate_code'] : null; if (!empty($order) && !empty($affiliate_code)) { // Get invoice collection $presenter = $this->Invoices->getPresenter($order->invoice_id); $collection = $presenter->collection();
Activity
Jonathan Reissmueller
created issue -
Jonathan Reissmueller
made changes -
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Sprint | 5.1.0 Sprint 3 [ 127 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Assignee | Jonathan Reissmueller [ jonathan ] |
Jonathan Reissmueller
made changes -
Status | Open [ 1 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |