Hi @cornutaurus I found the issue and is a one line fix. I should be close on line numbers but you can search for line to change in interface/patient_file/report/patient_report.php around L-436
// if the form does not match precisely with any names in the registry, now see if any front partial matches
// and change $form_name appropriately so it will print above in $toprint = $html_strings[$var]
if (!$form_name_found_flag) {
foreach ($registry_form_name as $var) {
if (str_starts_with($form_name, $var)) {
$form_name = $var;
}
}
}
Change str_starts_with($form_name, $var) to strpos($form_name, $var) == 0
Hope this helps and you might want to open a git issue so it gets tracked.