r30604 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30603‎ | r30604 | r30605 >
Date:03:28, 6 February 2008
Author:yaron
Status:old
Tags:
Comment:
Fix for value-setting bug introduced
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc
@@ -456,7 +456,7 @@
457457 if ($template_instance_query_values &&
458458 array_key_exists($field_name, $template_instance_query_values)) {
459459 $field_query_val = $template_instance_query_values[$field_name];
460 - if ($field_query_val && ! is_array($field_query_val)) {
 460+ if ($form_submitted || ($field_query_val && ! is_array($field_query_val))) {
461461 $cur_value = $field_query_val;
462462 }
463463 } else

Status & tagging log