Tags:
create new tag
, view all tags

Bug: View in raw mode filters out SEARCHES containing META Fields

I have a topic that searches a METAFIELD, in view?raw=on it filters out some of the topic text. view?raw=debug works

Test case

%SEARCH{"^%META:FIELD{name=.*AssignedTo.*.*" web="Tasks" nosearch="on" nototal="on" nosummary="on" regex="on" header="| Task Id | Task Priority | Task Status | Task Summary | Product | Est Time | Due Date | Creation Date |" format="| $topic | $formfield(TaskPriority) | $formfield(TaskStatus) | $formfield(TaskSummary) | $formfield(ProductName) | $formfield(TimeEstimated) | $formfield(DueDate) | $createdate |"}%

Task Id %CALC{"$COUNTITEMS( $ABOVE() )"}%: 1 %CALC{"$COUNTITEMS( $ABOVE() )"}%: 1 Task Summary %CALC{"$COUNTITEMS( $ABOVE() )"}%: 1 0 Due Date Creation Date

Environment

TWiki version: TWikiAlphaRelease
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  

-- SvenDowideit - 27 Apr 2004

Follow up

Fix record

This is fixed and in TWikiAlphaRelease.

Index: View.pm
===================================================================
--- View.pm     (revision 1527)
+++ View.pm     (working copy)
@@ -139,6 +139,7 @@
       my $vtext = "<form><textarea readonly=\"readonly\" wrap=\"virtual\" rows=\"%EDITBOXHEIGHT%\" cols=\"%EDITBOXWIDTH%\">";
       $vtext = &TWiki::handleCommonTags( $vtext, $topic );
       $text =~ s/&/&amp\;/go;
+      $text =~ s/%/&\#037\;/go;
       $text =~ s/</&lt\;/go;
       $text =~ s/>/&gt\;/go;
       $text =~ s/\t/   /go;

-- PeterThoeny - 31 May 2004

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-05-31 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2015 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.