Loading...
 
Skip to main content

1.10: PluginTrackerList returning incorrect filterfield when using categories

Status
Closed
Subject
1.10: PluginTrackerList returning incorrect filterfield when using categories
Version
2.x
Category
  • Error
Feature
Trackers
Wiki Plugin (extends basic syntax)
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Volunteered to solve
nyloth
Lastmod by
Xavier de Pedro
Rating
(0)
Description

Using 1.10cvs from mid June 2007

I'm using this code in here:
http://www.moviments.net/intercanvis/OfertesQuestion

Copy to clipboard
!! 1.1. Oferiments de __Cursos__ {TRACKERLIST(trackerId=>2,fields=>9:12:20:11:19, showtitle=>n, showlinks=>y, showdesc=>n, showinitials=>y, showstatus=>y, status=>opc, max=>20, filterfield=>42, filtervalue=>, exactvalue=>6, goIfOne=>n)}Com????{TRACKERLIST} !! 1.2. Oferiments d'__Habitatge__ {TRACKERLIST(trackerId=>2,fields=>9:12:20:11:19, showtitle=>n, showlinks=>y, showdesc=>n, showinitials=>y, showstatus=>y, status=>opc, max=>20, filterfield=>42, filtervalue=>45, exactvalue=>45, goIfOne=>n)}Com????{TRACKERLIST}


In the three cases cases I get
"incorrect filterfield"

Which I don't know why, since i follow indications at:
http://doc.tikiwiki.org/PluginTrackerListQuestion

I've tried with many more variants, just in case, with the same result (incorrect filterfield):

Copy to clipboard
{TRACKERLIST(trackerId=>2,fields=>9:12:20:11:19, showtitle=>n, showlinks=>y, showdesc=>n, showinitials=>y, showstatus=>y, status=>opc, max=>20, filterfield=>42, filtervalue=>6, exactvalue=>6, goIfOne=>n)}Com????{TRACKERLIST} {TRACKERLIST(trackerId=>2,fields=>9:12:20:11:19, showtitle=>n, showlinks=>y, showdesc=>n, showinitials=>y, showstatus=>y, status=>opc, max=>20, filterfield=>42, filtervalue=>6, exactvalue=>, goIfOne=>n)}Com????{TRACKERLIST} {TRACKERLIST(trackerId=>2,fields=>9:12:20:11:19, showtitle=>n, showlinks=>y, showdesc=>n, showinitials=>y, showstatus=>y, status=>opc, max=>20, filterfield=>42, filtervalue=>*, exactvalue=>6, goIfOne=>n)}Com????{TRACKERLIST}

In this tracker, field 42 is a category (id2), which has some more subcategories inside:
http://www.moviments.net/intercanvis/tiki-admin_categories.php?parentId=2Question

Categ 6 and categ 45 are subcategories of it.

Tracker 2, has many fields, but 2 examples for the "incorrect filterfield" behavior are:

Id 	  	posit 	name 	 	type 	 	options	isMain 	Multil. Tbl vis Search. Public 	Hidden 	Mandat. Desc. 	 
11 	edit 	30 	Cursos 	 	category 	6 	n 	n 	n 	y 	y 	n 	n 		
16 	edit 	35 	Habitatge 	category 	45 	n 	n 	n 	y 	y 	n 	n 		


However, if I don't set any filterfield nor exact value, then I can list all items without problem.(but no pre-filtering). Example:

Copy to clipboard
{TRACKERLIST(trackerId=>2,fields=>9:42:12:20:19, showtitle=>n, showlinks=>y, showdesc=>n, showinitials=>y, showstatus=>y, status=>opc, max=>20, filterfield=>42, filtervalue=>, exactvalue=>, goIfOne=>n)}Com????{TRACKERLIST}


Some bug around filterfield param when using categories?

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1165
Created
Tuesday 26 June, 2007 10:35:48 UTC
by Unknown
LastModif
Monday 23 July, 2007 17:43:13 UTC


Show PHP error messages