Merge branch '425-cmb-use-cmb-service-type' into '424-cmb-release'

Resolve "CMB - use CMB service type"

See merge request jankstudio/resq!489
This commit is contained in:
Korina Cordero 2020-06-17 02:05:34 +00:00
commit c3852e3b33

View file

@ -6,7 +6,7 @@ use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface;
use App\Ramcar\ServiceType;
use App\Ramcar\CMBServiceType;
use App\Ramcar\TradeInType;
use App\Ramcar\JOStatus;
use App\Ramcar\CMBJOEventType;
@ -1045,7 +1045,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
// check service type
$service_type = $req->request->get('service_type');
if (!ServiceType::validate($service_type))
if (!CMBServiceType::validate($service_type))
{
$data = [
'title' => 'Failed Service Change',