Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: N/A
Web server: N/A
Perl version: N/A
Client OS: N/A
Web Browser: N/A

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

Topic revision: r3 - 2004-08-20 - CrawfordCurrie
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.