Bug: Web.Topic Form Field Names don't work
Field names of
TWikiForms can be
WikiWords, this is used to link to a help topic.
As reported in
Support.WebDoesNotExistInForms, it is not possible to use a form field name with a WikiWord in a different web, like
Otherweb.AssignedTo. Links show up correctly when viewing a topic, but the link is broken in edit.
Test case
Create a form with a field like:
| Otherweb.AssignedTo | text | 60 | | |
See example in
Support.WebDoesNotExistInForms.
Environment
--
PeterThoeny - 19 Oct 2003
Follow up
Fix record
Fixed in
TWikiAlphaRelease and in TWiki.org.
Patch for
twiki/lib/TWiki/Form.pm, function
link:
*** bu6/Form.pm 2003-06-18 15:08:08.000000000 -0700
--- Form.pm 2003-10-19 02:21:35.000000000 -0700
***************
*** 201,206 ****
--- 201,207 ----
my $link = "$name";
if( &TWiki::Store::topicExists( $web, $name ) ) {
+ ( $web, $name ) = &TWiki::Store::normalizeWebTopicName( $web, $name );
if( ! $tooltip ) {
$tooltip = "Click to see details in separate window";
}
--
PeterThoeny - 19 Oct 2003