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