diff --git a/lam/templates/pdfedit/pdfpage.php b/lam/templates/pdfedit/pdfpage.php index 92732429..8fe3a242 100644 --- a/lam/templates/pdfedit/pdfpage.php +++ b/lam/templates/pdfedit/pdfpage.php @@ -435,19 +435,20 @@ foreach($_SESSION['currentPDFStructure'] as $key => $entry) { // We have a new section to start if($entry['tag'] == "SECTION" && $entry['type'] == "open") { $name = $entry['attributes']['NAME']; - if(preg_match("/^_[a-zA-Z_]+/",$name)) { - $section_headline = substr($name,1); + if(preg_match("/^_[a-zA-Z0-9_]+_[a-zA-Z0-9_]+/",$name)) { + $section_headline = translateFieldIDToName(substr($name,1)); } else { $section_headline = $name; } $nonTextSections .= '\n"; + $sections .= '\n"; ?>