Loading...
 
Skip to main content

Having a variable (tracker field value) as gap value for filter range

Status
Closed
Subject
Having a variable (tracker field value) as gap value for filter range
Version
16.x
Category
  • Feature request
Feature
Wiki Plugin (extends basic syntax)
Resolution status
Fixed or Solved
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

The plugin List (or listExecute) is able to filter by range:

{filter range="tracker_field_date" from="now" gap="2592000"}

The gap is hardcoded in the plugin filter value.
It would be nice it could be one a variable such as a value within the tracker.

{filter range="tracker_field_date" from="now" gap="tracker_field_gap"}

As an extension it would be nicer it accept a Human Readable value like days or month.
It is unlikely end user has to deal with value like "2592000" (second) in a tracker item but more with value like "30 days".

Importance
6
Easy to solve?
4
Priority
24
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6159
Created
Tuesday 01 November, 2016 13:46:39 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Wednesday 11 January, 2017 14:30:10 UTC


Show PHP error messages