• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4347: Empty field values in searches are returned as strings containing "$value"

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   minor  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


An example search:

Id Summary State,
Waiting for
Priority Applies To Changed By
Item4341 %WEBLIST% and %WIKIWEBLIST% (used in the Classic skin) produce different results No Action Required Normal Engine TWikiUserMapping_KennethLavrsen 2007-07-11 - 21:38
Number of topics: 1

Is currently returning (r14381):

Id Summary State,
Waiting for
Priority Applies To Changed By
Item4341 $value $value $value $value $value DetlefMarxsen 10 Jul 2007 - 15:14

-- TWiki:Main/SteffenPoulsen - 11 Jul 2007

i don't understand; this site is running the latest code, but the output you give above is HTML; the actual example seems to work fine. Can you please provide a testcase that demonstrates the problem?

-- TWiki:Main.CrawfordCurrie - 12 Jul 2007

I have seen this as well. If you look at http://develop.twiki.org/~twiki4/cgi-bin/view/Bugs/WebChanges?limit=50, you should see Item4350, which seems to be a completely empty bug.

It happens when a search is looking for form fields ($formfield(...)). If the form field is not found in the meta data (i.e. there is no %META:FIELD{..}% for that name), then search will return $value.

Once the form has been edited once, then a %META:FIELD{..}% will be created for each of the fields, whether they have a value or not. When this happens, the search returns nothing, rather than $value.

Hope this is clear! If not, it should be possible to make a test case in the litter tray web. Also if you sign up to WebRss, you should get notified when a bug like this is created, without %META:FIELD{..}%, so you can look at it. (at first I thought this was due to Item4307, but it appears to be caused by this bug.)

-- TWiki:Main.AndrewRJones - 12 Jul 2007

Testcase: %SEARCH{"Item4347" scope="topic" format="$formfield(Blah)" nonoise="on"}% returns

Added a unit testcase. Confirmed.

-- TWiki:Main.CrawfordCurrie - 13 Jul 2007



Summary Empty field values in searches are returned as strings containing "$value"
ReportedBy TWiki:Main.SteffenPoulsen

SVN Range TWiki-4.1.2, Thu, 28 Jun 2007, build 14298
AppliesTo Engine

Priority Urgent
CurrentState Closed

Checkins TWikirev:14402 TWikirev:14463
TargetRelease minor

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r10 - 2008-01-22 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback