Skip to content

Commit

Permalink
Fix broken configuration of results_remap.
Browse files Browse the repository at this point in the history
This was broken in 754779b.

As reported by Shengliang Cai and based on a patch by @Kevinjil.
  • Loading branch information
eldering committed Dec 4, 2024
1 parent 49d347f commit c802b1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/src/Service/ConfigurationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,7 @@ public function addOptions(ConfigurationSpecification $item): ConfigurationSpeci
break;
case 'results_prio':
case 'results_remap':
$verdictsConfig = $this->etcDir . '/verdicts.php';
$verdicts = include $verdictsConfig;
$verdicts = $this->getVerdicts(['final']);
$item->keyOptions = ['' => ''];
foreach (array_keys($verdicts) as $verdict) {
$item->keyOptions[$verdict] = $verdict;
Expand Down

0 comments on commit c802b1b

Please sign in to comment.