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 - 2008-06-03 - PeterThoeny
 
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.