• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

When creating a new topic, getFieldValuesFromQuery is used to populate the form values. Because of issues that occur when an undefined value is used, it is told to initialise undefined values to ''. When the form is rendered for edit, the field is assumed to have a value (the empty string) so the field default is not applied.

Because we want the empty string to be a valid value for form fields, we need to change the call to getFieldValuesFromQuery so that it doesn't set default values for fields when a new topic is being created.

CC

ItemTemplate
Summary Default values for fields not picked up in new form (TWIKI4 only)
ReportedBy TWiki:Main.CrawfordCurrie
Codebase

SVN Range Wed, 12 Apr 2006 build 9798
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 10175 9803
TargetRelease patch
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r6 - 2006-05-01 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback