From 8b6128f1e3e126b83cf1375b08cae469504ee07e Mon Sep 17 00:00:00 2001 From: Magdalena Holczik Date: Thu, 5 Dec 2024 12:37:37 +0100 Subject: [PATCH] Bugfix: Format string for bookingoption updated description --- classes/output/bookingoption_changes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/output/bookingoption_changes.php b/classes/output/bookingoption_changes.php index dfaa501ee..4964eb30d 100755 --- a/classes/output/bookingoption_changes.php +++ b/classes/output/bookingoption_changes.php @@ -132,7 +132,13 @@ public function export_for_template(renderer_base $output) { $entry['newvalue'] = html_writer::link($link, $link->out()); } + if (isset($entry['newvalue']) && is_string($entry['newvalue'])) { + $entry['newvalue'] = format_string($entry['newvalue']); + } + if (isset($entry['oldvalue']) && is_string($entry['oldvalue'])) { + $entry['oldvalue'] = format_string($entry['oldvalue']); + } // Add all custom fields here. $newchangesarray[] = $entry; }