• 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.

Package: twiki Version: 1:4.0.5-6 Severity: normal Tags: patch

If you use a separate topic to define possible values for select, checkbox or radio fields of TWiki forms, values containing "Name" in there name are not displayed when the form is edited (e.g. "ProperName", "FullName", "NoName").

reported at

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=405571


Index: lib/TWiki/Form.pm
===================================================================
--- lib/TWiki/Form.pm   (revision 12420)
+++ lib/TWiki/Form.pm   (working copy)
@@ -269,7 +269,7 @@
     my @defn = ();
     my $inBlock = 0;
     foreach( split( /\r?\n/, $text ) ) {
-        if( /^\s*\|.*Name[^|]*\|/ ) {
+        if( /^\s*\|\s*\*Name\*\s*\|/ ) {
             $inBlock = 1;
         } else {
             if( /^\s*\|\s*([^|]*)\s*\|/ ) {
CC

Cleaned up the doc and added a testcase at the same time.

CC

ItemTemplate
Summary Form select/checkbox/radio values containing "Name" not displayed
ReportedBy TWiki:Main.SvenDowideit
Codebase 4.0.5, ~twiki4
SVN Range TWiki-4.1.0, Thu, 04 Jan 2007, build 12435
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 12459
TargetRelease minor
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-01-16 - JasonHill
 
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