• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 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 using a formtemplate and initializing values using query params the value that is passed over is inserted twice into the form by CGI.pm, first by checking/selecting the option an second by setting the new hidden dummy field introduced in Item2410. The result of this is that while saving the topic the meta data value will be duplicated as Save.pm does not protect those fields being set by the same value twice.

Example: you get


The fix is to not to use CGI to create the hidden dummy field but use a plain <input type="hidden" name="SomeCheckBoxField" value="" /> string instead.

($CGI::VERSION='3.15')

MD


Setting MergeTo to "minor": The fix must have the same status as Item2410.

haj

4.1.0 released

KJL

ItemTemplate
Summary duplicate values in checkbox and select when creating a new topic
ReportedBy TWiki:Main.MichaelDaum
Codebase ~twiki4
SVN Range TWiki-4.1, Sun, 22 Oct 2006, build 11793
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 11833
TargetRelease minor
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-01-16 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback