Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions webapp/src/Controller/Jury/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ public function indexAction(EventLogService $eventLogService, Request $request):
}
}
$before = $this->config->all();
// In case we clear a value it would not be sent and we keep the old value, this is a mistake
foreach ($before as $key => $value) {
if (!isset($data[$key])) {
if (is_array($value)) {
$data[$key] = [];
} else {
$data[$key] = null;
}
}
}
$errors = $this->config->saveChanges($data, $eventLogService, $this->dj, options: $options);
$after = $this->config->all();

Expand Down
Loading