Loading...
 
Skip to main content

Tablesorter: dropdowns in tsfilters are shown as text filters (most of them) when server=y

Status
Closed
Subject
Tablesorter: dropdowns in tsfilters are shown as text filters (most of them) when server=y
Version
17.x
Category
  • Conflict of two features (each works well independently)
  • Consistency
  • Error
Feature
Edit interface (UI)
Tablesorter
Resolution status
Rejected
Submitted by
Xavier de Pedro
Volunteered to solve
Lastmod by
Xavier de Pedro, lindon
Rating
(0)
Related-to
Description

Tablesorter: dropdowns in tsfilters and shown as text filters (most of them) when server=y

Reproduced at the show instance from this related report:
https://dev.tiki.org/item6200

http://xavi-9794-6200.show.tikiwiki.org/tiki-index.php?page=Bug6202
u: admin
p: 12345

edit the page, and you will see that many of the filters where set as dropdowns, However, they are shown as text filters.

Solution

Except for tracker type "dropdown" fields where the dropdown options are specified in the tracker field definition, dropdown lists cannot be automatically generated when using ajax by design. This is because with ajax only some of the rows may be retrieved at a time so there is no way of knowing what all the possible options are that have been used in the other rows. To avoid creating an incomplete automatic dropdown list, no automatic dropdown is generated when ajax is being used - the dropdown options must be specified either in the dropdown tracker field definition or in the tsfilter parameter setting.

I have added documentation to PluginTackerlist to explain.

Workaround

Two ways to generate the dropdown list when using ajax (server=y):

  • Use tracker field type "dropdown" and specify dropdown options in the field definition
  • Specify dropdown options in the tsfilters parameter
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6202
Created
Tuesday 13 December, 2016 14:37:49 UTC
by Xavier de Pedro
LastModif
Tuesday 03 January, 2017 23:12:13 UTC


Show PHP error messages