Merge branch '624-app-error-when-customer-requests-tire-assistance' into 'master-fix'
Resolve "App error when customer requests tire assistance" See merge request jankstudio/resq!738
This commit is contained in:
commit
697fa20071
1 changed files with 8 additions and 4 deletions
|
|
@ -2897,10 +2897,14 @@ class APIController extends Controller implements LoggedController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// add battery to items
|
// check if batt is null
|
||||||
$sku = $batt->getSAPCode();
|
if ($batt != null)
|
||||||
if (!empty($sku))
|
{
|
||||||
$hub_criteria->addItem($batt->getSAPCode(), 1);
|
// add battery to items
|
||||||
|
$sku = $batt->getSAPCode();
|
||||||
|
if (!empty($sku))
|
||||||
|
$hub_criteria->addItem($batt->getSAPCode(), 1);
|
||||||
|
}
|
||||||
|
|
||||||
// get customer id. No JO id at this point
|
// get customer id. No JO id at this point
|
||||||
$customer_id = $cust->getID();
|
$customer_id = $cust->getID();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue