@@ 120-125 (lines=6) @@ | ||
117 | ||
118 | /** @var SubmitButton $cancelButton */ |
|
119 | $cancelButton = $form->get('cancel'); |
|
120 | if ($cancelButton->isClicked()) { |
|
121 | $this->getVettingService()->cancelProcedure($procedureId); |
|
122 | $this->addFlash('info', $this->get('translator')->trans('ra.vetting.flash.cancelled')); |
|
123 | ||
124 | return $this->redirectToRoute('ra_vetting_search'); |
|
125 | } |
|
126 | ||
127 | if (!$form->isSubmitted() || !$form->isValid()) { |
|
128 | $logger->notice( |
@@ 212-217 (lines=6) @@ | ||
209 | ||
210 | /** @var SubmitButton $cancelButton */ |
|
211 | $cancelButton = $form->get('cancel'); |
|
212 | if ($cancelButton->isClicked()) { |
|
213 | $this->getVettingService()->cancelProcedure($procedureId); |
|
214 | $this->addFlash('info', $this->get('translator')->trans('ra.vetting.flash.cancelled')); |
|
215 | ||
216 | return $this->redirectToRoute('ra_vetting_search'); |
|
217 | } |
|
218 | ||
219 | $vettingService = $this->getVettingService(); |
|
220 | $commonName = $vettingService->getIdentityCommonName($procedureId); |