Skip to content

Commit

Permalink
Merge pull request #1243 from csrdelft/corvee-fix
Browse files Browse the repository at this point in the history
fix voor 500 error corvee
  • Loading branch information
jobvonck authored Dec 26, 2024
2 parents f101082 + 6637058 commit 693526d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/view/maalcie/forms/TaakForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</td>
<td class="text-center" style="width: 50px;">
{% 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
Expand Down

0 comments on commit 693526d

Please sign in to comment.