Merge branch '395-resq-api-bug-fixes' into 'master'
Set some defaults to null in get vehicles #395 Closes #395 See merge request jankstudio/resq!439
This commit is contained in:
commit
0ef04e68a3
1 changed files with 2 additions and 2 deletions
|
|
@ -718,11 +718,11 @@ class APIController extends Controller implements LoggedController
|
||||||
$cvs = $cust->getVehicles();
|
$cvs = $cust->getVehicles();
|
||||||
foreach ($cvs as $cv)
|
foreach ($cvs as $cv)
|
||||||
{
|
{
|
||||||
$battery_id = '';
|
$battery_id = null;
|
||||||
if ($cv->getCurrentBattery() != null)
|
if ($cv->getCurrentBattery() != null)
|
||||||
$battery_id = $cv->getCurrentBattery()->getID();
|
$battery_id = $cv->getCurrentBattery()->getID();
|
||||||
|
|
||||||
$wty_ex = '';
|
$wty_ex = null;
|
||||||
if ($cv->getWarrantyExpiration() != null)
|
if ($cv->getWarrantyExpiration() != null)
|
||||||
$wty_ex = $cv->getWarrantyExpiration()->format('Y-m-d');
|
$wty_ex = $cv->getWarrantyExpiration()->format('Y-m-d');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue