Item1285: FORMFIELD not working on trunk!

pencil
Priority: Urgent
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: KennethLavrsen
FORMFIELD{"Summary" topic="Item1012"} == Update logo in configure

shows "Update logo in configure" on release 1.0 and "FORMFIELD not working on trunk?" here, which is wrong.

FORMFIELD{"Summary" topic="Tasks.Item1012"} == Update logo in configure

FORMFIELD{"Summary" topic="Tasks.Item1012" default=""} ==

-- SvenDowideit - 14 Mar 2009
Index: Foswiki.pm
===================================================================
--- Foswiki.pm   (revision 3057)
+++ Foswiki.pm   (working copy)
@@ -3113,6 +3113,11 @@
     my ( $this, $params, $topicObject ) = @_;
     my $query = $this->{request};
     $params->{rev} = $query->param('rev') if ($query);
+    if ( $args->{topic} ) {
+        my ($web, $topic ) = 
+          $this->normalizeWebTopicName( $topicObject->web, $args->{topic} );
+        $topicObject = new Foswiki::Meta( $session, $web, $topic );
+    }
     return $this->renderer->renderFORMFIELD( $params, $topicObject );
 }
needs unit test

-- CrawfordCurrie - 14 Mar 2009

I added a unit test that uncovered two other minor bugs, so leaving this as "waiting for release" rather than closing it. Documented secret 'rev' parameter, and made it apply beyond the current topic.

-- CrawfordCurrie - 14 Mar 2009

ItemTemplate edit

Summary FORMFIELD not working on trunk!
ReportedBy SvenDowideit
Codebase trunk
SVN Range SVN 3084: Foswiki-1.1.0-dev, Wed, 11 Mar 2009, build 2984
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:292d03206403 distro:012de63ba00c
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r8 - 06 Sep 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy