Resolve "CMB - use CMB service type" #1300
1 changed files with 2 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
|
use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
|
||||||
|
|
||||||
use App\Ramcar\ServiceType;
|
use App\Ramcar\CMBServiceType;
|
||||||
use App\Ramcar\TradeInType;
|
use App\Ramcar\TradeInType;
|
||||||
use App\Ramcar\JOStatus;
|
use App\Ramcar\JOStatus;
|
||||||
use App\Ramcar\CMBJOEventType;
|
use App\Ramcar\CMBJOEventType;
|
||||||
|
|
@ -1045,7 +1045,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
||||||
|
|
||||||
// check service type
|
// check service type
|
||||||
$service_type = $req->request->get('service_type');
|
$service_type = $req->request->get('service_type');
|
||||||
if (!ServiceType::validate($service_type))
|
if (!CMBServiceType::validate($service_type))
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'title' => 'Failed Service Change',
|
'title' => 'Failed Service Change',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue