Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc |
— | — | @@ -632,10 +632,8 @@ |
633 | 633 | // form values, see if the current input is part of that formula, |
634 | 634 | // and if so, substitute in the actual value |
635 | 635 | if ($form_submitted && $generated_page_name != '') { |
636 | | - $generated_page_name = str_replace('.', '_', $generated_page_name); |
637 | | - $generated_page_name = str_replace(' ', '_', $generated_page_name); |
638 | | - $generated_page_name = str_ireplace("<$input_name>", $cur_value_in_template, $generated_page_name); |
639 | | - |
| 636 | + $true_input_name = str_replace('_', ' ', $input_name); |
| 637 | + $generated_page_name = str_ireplace("<$true_input_name>", $cur_value_in_template, $generated_page_name); |
640 | 638 | } |
641 | 639 | // disable this field if either the whole form is disabled, or |
642 | 640 | // it's a restricted field and user doesn't have sysop privileges |