Skip to content

Commit

Permalink
fix(selectfield): translation breaks validation checks
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Aug 23, 2023
1 parent 573aacb commit 28b4781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field/selectfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getRenderedHtml($domain, $canEdit = true): string {
foreach ($values as $value) {
if ((trim($value) != '')) {
$unsanitized = Sanitizer::unsanitize(__($value, $domain));
$translatedValues[$unsanitized] = $unsanitized;
$translatedValues[$value] = $unsanitized;
}
}

Expand Down

0 comments on commit 28b4781

Please sign in to comment.