fixed changing of section titles

This commit is contained in:
Roland Gruber 2008-12-27 13:06:42 +00:00
parent 383c127544
commit 3d66a2e843
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ elseif(isset($_GET['add_new_field'])) {
elseif(isset($_GET['change'])) {
$alter = explode('_',$_GET['change']);
$newvalue = $_GET['section_' . $alter[0]];
if (isset($alter[1]) && ($alter[1] == 'item')) {
if (isset($alter[1]) && ($alter[1] == 'item') && ($newvalue[0] != '_')) {
$newvalue = '_' . $newvalue;
}
$_SESSION['currentPDFStructure'][$alter[0]]['attributes']['NAME'] = $newvalue;