From 5090f72fab1e7eaedb76cb3388d7007560a5b7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 20 Oct 2026 17:11:12 +0200 Subject: [PATCH] fix: log a called-off disposition under its own id key The disposition call-off logged the disposition's id as "assignment_id" and set the status from the Assignment constant; both now use the disposition's own name. Co-Authored-By: Claude Opus 5.5 --- .../Administrative/Disposition/CallOffController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Controller/Administrative/Disposition/CallOffController.php b/src/Controller/Administrative/Disposition/CallOffController.php index 3f1f314..74915e9 100644 --- a/src/Controller/Administrative/Disposition/CallOffController.php +++ b/src/Controller/Administrative/Disposition/CallOffController.php @@ -2,7 +2,6 @@ namespace App\Controller\Administrative\Disposition; -use App\Entity\Assignment; use App\Entity\Disposition; use App\Event\DispositionCalledOffEvent; use App\Form\DispositionCallOffType; @@ -33,7 +32,7 @@ class CallOffController extends AbstractController $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { - $disposition->setStatus(Assignment::STATUS_CALLED_OFF); + $disposition->setStatus(Disposition::STATUS_CALLED_OFF); $sendNotification = $form->get('sendNotification')->getData(); $this->entityManager->flush(); @@ -46,7 +45,7 @@ class CallOffController extends AbstractController $assignment = $disposition->getAssignment(); $this->logger->info('Call off disposition', [ - 'assignment_id' => $disposition->getId(), + 'disposition_id' => $disposition->getId(), 'destination' => (string) $assignment->getDestination(), 'job_profile' => $assignment->getJobProfile()->getName(), ]);