PointRetrait : finalisation de la partie backOffice

This commit is contained in:
2021-03-04 12:59:55 +01:00
parent dc939c1e29
commit b98e6f7590
9 changed files with 32 additions and 29 deletions

View File

@@ -34,8 +34,8 @@ class ScheduleController extends BaseAdminController
if (null !== $response = $this->checkAuth(AdminResources::MODULE, PointRetrait::getModuleCode(), AccessManager::UPDATE))
return $response;
$placeScheduleId = $this->getRequest()->get('place-schedule_id');
$query = PdrPlacesQuery::create()->findById($placeScheduleId);
$placeScheduleId = $this->getRequest()->get('schedule_id');
$query = PdrScheduleQuery::create()->findById($placeScheduleId);
if ($query === null)
$error_msg = "Delivery area schedule not found by Id";
else
@@ -72,7 +72,7 @@ class ScheduleController extends BaseAdminController
$form = $this->validateForm($changeForm, "POST");
$data = $form->getData();
$placeScheduleId = $this->getRequest()->get('place-schedule_id');
$placeScheduleId = $this->getRequest()->get('schedule_id');
$query = PdrScheduleQuery::create()->findOneById($placeScheduleId);
if ($query === null)
$error_msg = "Withdrawal place schedule not found by Id";