Support new rider app has_motolite and flag_coolant format
This commit is contained in:
parent
92dd024805
commit
4464edc803
1 changed files with 2 additions and 2 deletions
|
|
@ -789,8 +789,8 @@ class RAPIController extends Controller
|
||||||
|
|
||||||
// has motolite battery
|
// has motolite battery
|
||||||
$cv = $jo->getCustomerVehicle();
|
$cv = $jo->getCustomerVehicle();
|
||||||
$has_motolite = $req->request->get('has_motolite', 0);
|
$has_motolite = $req->request->get('has_motolite', 'false');
|
||||||
if ($has_motolite)
|
if ($has_motolite == 'true')
|
||||||
$cv->setHasMotoliteBattery(true);
|
$cv->setHasMotoliteBattery(true);
|
||||||
else
|
else
|
||||||
$cv->setHasMotoliteBattery(false);
|
$cv->setHasMotoliteBattery(false);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue