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

I have a formatted search used in my Motion Web.

%SEARCH{ ".*"
 topic="ConfigOption*"
 casesensitive="on"
 regex="on"
 nosearch="on"
 nototal="on"
 order="formfield(Option)"
 excludetopic="ConfigOptionTemplate, ConfigOptionForm"
 format="| [[$topic][$formfield(Option)]]| Values: $formfield(Range)<br />Default: $formfield(Default) | $formfield(Description) |"}%

The formfield "Default" is a default value for a Motion option.

It is sometimes numbers and sometimes text. So it is defined as a text field in the form.

When the value happens to be 0 the $formfield(Default) returns nothing instead of the 0. That is a bug and it worked in Cairo.

KJL

Can you demonstrate with a testcase please? It makes debugging much faster if I don't have to generate a testcase as well. Thanks.

CC

I will try and use this topic as test case abusing the ExtensionName field for it. Please bear over with me if I update this report many times in a row.

Value:

In the above search the result should be Value: Value_from_ExtensionName_field

If you put any value other than '0' it works. Example '2' or 'Crawford is a pain in the ass'. If you put '0' with no extra spaces after it the search returns nothing. It should show 0.

KJL

OK, thanks.

SVN 9107, 9108 (merged)

CC

Closed with the release of 4.0.2

KJL

ItemTemplate
Summary Formatted search does not return values that are zero
ReportedBy TWiki:Main.KennethLavrsen
Codebase

SVN Range Fri, 03 Mar 2006 build 9056
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

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