Skip to content

Commit

Permalink
UHF-11076 (#1614)
Browse files Browse the repository at this point in the history
* UHF-11076.1: prevent encoded characters on filled application preview

* UHF-11076.1: this is not worth an error
  • Loading branch information
rpnykanen authored Dec 16, 2024
1 parent a1f30bf commit 436f3d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function formatTextItemValue(array $element, WebformSubmissionInterfac
$webformElement = $element["#webform_composite_elements"][$fieldName];
if ($webformElement && isset($webformElement['#title'])) {
$lines[] = '<dt>' . $webformElement['#title']->render() . '</dt>';
$lines[] = '<dd>' . $fieldValue . '</dd>';
$lines[] = '<dd>' . htmlspecialchars_decode($fieldValue) . '</dd>';
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions public/modules/custom/grants_handler/grants_handler.module
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ function grants_handler_preprocess_application_list_item(&$variables): void {
}
else {
\Drupal::logger('grants_handler')
->error('Application status not in valid statuses: %number', [
->info('Application status not in valid statuses: %number', [
'%number' => $submissionData["application_number"],
]);
}
Expand Down Expand Up @@ -1611,7 +1611,7 @@ function grants_handler_preprocess_application_status_tag(&$variables): void {
}
else {
\Drupal::logger('grants_handler')
->error('Application status not in valid statuses: %appno', [
->info('Application status not in valid statuses: %appno', [
'%appno' => $submissionData["application_number"],
]);
}
Expand Down

0 comments on commit 436f3d7

Please sign in to comment.