We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question:

META formfield Display appears Broken, Is this a valid fix?

After upgrading from 4.1.2 to 4.2, pages that Included META tags for form fields came up blank and didn't work

%META{ "formfield" name="ProjTitle"}%

Looking in the Twiki.pm for 4.2 shows that the function that renders the formfield has changed from 4.1

I was able to restore functionality using the following change:

--- lib/TWiki.pm 2008-04-23 13:06:50.000000000 +1000
+++ lib/Twiki.pm.orig   2008-04-23 13:37:42.000000000 +1000
@@ -3795,7 +3795,7 @@
         return $meta->renderFormForDisplay( $this->templates );
     } elsif ( $option eq 'formfield' ) {
         # a formfield from within topic text
-        return $meta->renderFormFieldForDisplay( $params->{'name'}, '$value' );
+        return $meta->renderFormFieldForDisplay( $params );
     } elsif( $option eq 'attachments' ) {
         # renders attachment tables
         return $this->attach->renderMetaData( $web, $topic, $meta, $params );

So I have some questions:

  • Is this a Bug?
  • Is this fix complete?
  • Should the fix be on the renderFormFieldForDisplay function in Meta.pm and not the Twiki.pm?
    • The renderFormFieldForDisplay function appears to be called correctly from /ActionTrackerPlugin/Action.pm and the Search.pm.

Thanks, -- SimonHarrison - 23 Apr 2008

Environment

-- SimonHarrison - 23 Apr 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Please file a bug report so that developers can look at it.

-- PeterThoeny - 03 Jun 2008

 
Change status to:
Topic revision: r2 - 03 Jun 2008 - 00:55:38 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback