Skip to content

Commit

Permalink
Do not translate names in select dropdowns on Read templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Mar 19, 2024
1 parent 5101cad commit 86c3c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Views/shared/read_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@ function read_select(string $name = '', string $value = '', string $dictionary =
if ($item->attributes->value === '') {
$selected .= ' label="none"';
}
$return .= " <option value=\"{$item->attributes->value}\"{$selected}>" . __($item->attributes->name) . "</option>\n";
$return .= " <option value=\"{$item->attributes->value}\"{$selected}>" . $item->attributes->name . "</option>\n";
} else if (!empty($item->type) and $item->type === 'discovery_scan_options') {
$return .= " <option value=\"{$item->attributes->id}\"{$selected}>{$item->attributes->name}</option>\n";
} else {
if ($item->id === '') {
$selected .= ' label="none"';
}
$return .= " <option value=\"{$item->id}\"{$selected}>" . __($item->attributes->name) . "</option>\n";
$return .= " <option value=\"{$item->id}\"{$selected}>" . $item->attributes->name . "</option>\n";
}
}
$return .= " </select>\n";
Expand Down

0 comments on commit 86c3c3c

Please sign in to comment.