From 66370583e541b416ff5cbe63795f9da445286ac7 Mon Sep 17 00:00:00 2001 From: Job Vonck Date: Thu, 26 Dec 2024 22:08:51 +0100 Subject: [PATCH] fix voor 500 error corvee --- lib/view/maalcie/forms/TaakForm.php | 2 +- templates/maaltijden/corveetaak/beheer_taak_lijst.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/view/maalcie/forms/TaakForm.php b/lib/view/maalcie/forms/TaakForm.php index 00ad017fd8..fb743c91d0 100644 --- a/lib/view/maalcie/forms/TaakForm.php +++ b/lib/view/maalcie/forms/TaakForm.php @@ -29,7 +29,7 @@ public function __construct(CorveeTaak $taak, $action) { parent::__construct($taak, '/corvee/beheer/' . $action); - if ($taak->taak_id === null) { + if (!isset($taak->taak_id)) { $this->titel = 'Corveetaak aanmaken'; } else { $this->titel = 'Corveetaak wijzigen'; diff --git a/templates/maaltijden/corveetaak/beheer_taak_lijst.html.twig b/templates/maaltijden/corveetaak/beheer_taak_lijst.html.twig index f2146e332f..2a51721324 100644 --- a/templates/maaltijden/corveetaak/beheer_taak_lijst.html.twig +++ b/templates/maaltijden/corveetaak/beheer_taak_lijst.html.twig @@ -39,7 +39,7 @@ {% set aantal = taak.aantalKeerGemaild %} - {% if not taak.verwijderd and (maaltijd is none or (maaltijd is not none and not maaltijd.verwijderd)) %} + {% if not taak.verwijderd and (maaltijd is not defined or maaltijd is none or (maaltijd is not none and not maaltijd.verwijderd)) %} {% set wijzigbaar = true %} {% if taak.profiel %} {{ aantal }}x