Skip to content

Commit

Permalink
fix bug where checked extra field would appear unchecked in pdf
Browse files Browse the repository at this point in the history
fix #4490
  • Loading branch information
NicolasCARPi committed Jul 28, 2023
1 parent b63f358 commit fdb28b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/TwigFilters.php
Expand Up @@ -77,7 +77,7 @@ public static function formatMetadata(string $json): string
$value = $field[MetadataEnum::Value->value];
// checkbox is a special case
if ($field[MetadataEnum::Type->value] === 'checkbox') {
$checked = $field[MetadataEnum::Value->value] === 'on' ? 'checked' : '';
$checked = $field[MetadataEnum::Value->value] === 'on' ? 'checked="checked"' : '';
$value = '<input class="d-block" disabled type="checkbox" ' . $checked . '>';
}
// url is another special case
Expand Down

0 comments on commit fdb28b4

Please sign in to comment.