https://bugzilla.wikimedia.org/show_bug.cgi?id=36505
--- Comment #5 from Sal Quintanilla <[email protected]> 2012-06-15 15:06:40 UTC --- Can't believe I cut-and-paste and posted that. This is a little better: --- D:/Projects/Internal/smwwiki/trunk/src/site/main/extensions/SemanticForms/includes/SF_FormPrinter.php (revision 219) +++ D:/Projects/Internal/smwwiki/trunk/src/site/main/extensions/SemanticForms/includes/SF_FormPrinter.php (revision 260) @@ -792,15 +792,6 @@ $cur_value = ''; } - if ( empty( $cur_value ) ) { - if ( $default_value ) { - // Set to the default value specified in the form, if it's there. - $cur_value = $default_value; - } elseif ( $preload_page ) { - $cur_value = SFFormUtils::getPreloadedText( $preload_page ); - } - } - // if the user is editing a page, and that page contains a call to // the template being processed, get the current field's value // from the template call @@ -816,6 +807,15 @@ } } + if ( empty( $cur_value ) ) { + if ( $default_value ) { + // Set to the default value specified in the form, if it's there. + $cur_value = $default_value; + } elseif ( $preload_page ) { + $cur_value = SFFormUtils::getPreloadedText( $preload_page ); + } + } + // Handle the free text field - if it was declared as // "field|free text" (a deprecated usage), it has to be outside // of a template. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
