Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -785,12 +785,11 @@ |
786 | 786 | $field_args['show on select'] = $show_on_select; |
787 | 787 | // Get the value from the request, if |
788 | 788 | // it's there, and if it's not an array. |
789 | | - $escaped_field_name = str_replace( "'", "\'", $field_name ); |
790 | 789 | if ( isset( $template_instance_query_values ) && |
791 | 790 | $template_instance_query_values != null && |
792 | 791 | is_array( $template_instance_query_values ) && |
793 | | - array_key_exists( $escaped_field_name, $template_instance_query_values ) ) { |
794 | | - $field_query_val = $template_instance_query_values[$escaped_field_name]; |
| 792 | + array_key_exists( $field_name, $template_instance_query_values ) ) { |
| 793 | + $field_query_val = $template_instance_query_values[$field_name]; |
795 | 794 | if ( $form_submitted || ( ! is_null( $field_query_val ) && ! is_array( $field_query_val ) ) ) { |
796 | 795 | $cur_value = $field_query_val; |
797 | 796 | } |