chore(#27): sync issues/27 from monorepo (dad8c16 issues/27: verify MIS session before online visit and payment)
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Bundle\Infoclinica\Region;
|
||||
use App\Support\OnlineMode;
|
||||
use App\Entity\Record;
|
||||
use App\Entity\PriceDepartment;
|
||||
use App\Entity\PriceList;
|
||||
@@ -227,7 +226,7 @@ class PublicAPIController extends AbstractController
|
||||
$doctor = $request->query->get('doctor');
|
||||
$department = $request->query->get('department');
|
||||
$filial = $request->query->get('filial');
|
||||
$onlineMode = OnlineMode::isOnline($request->query->get('onlineMode'));
|
||||
$onlineMode = $request->query->get('onlineMode')? true: false;
|
||||
$isFree = true;
|
||||
$nearestDate = NULL;
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ SpecialistService $specialistService,
|
||||
$kinder = ($kinder == 1) ? 1 : null;
|
||||
|
||||
$searchForm = $this->createForm(SpecialistSearchType::class, new SpecialistView(), [
|
||||
'action' => $this->generateUrl('specialist_online_index'),
|
||||
'action' => $this->generateUrl('specialist_index'),
|
||||
'method' => 'GET',
|
||||
'regionId' => $regionId,
|
||||
'kinder' => $kinder,
|
||||
@@ -128,7 +128,6 @@ SpecialistService $specialistService,
|
||||
$searchForm->handleRequest($request);
|
||||
|
||||
$filters = $request->query->get('specialist_search', ['onlineMode' => 1]);
|
||||
$filters['onlineMode'] = 1;
|
||||
|
||||
if ($regionId > 0) {
|
||||
$filters['regionId'] = $regionId;
|
||||
|
||||
Reference in New Issue
Block a user