Bug (closed)

Home > List changes preset do not work


Feb 14, 2007
May 29, 2007
Feb 15, 2007 / pixtur
Aug 5, 2009 / rafael.dalpra

Attached files

No files uploaded
This task does not have any text yet.
Doubleclick here to add some.

Issue report

Have not tried
PHP 5.2.X
Streber 0.0794
2007-01-14 16:41
  1. got to home / Changes
  2. Try preset "Today"

Too many results shown.

Use ListFilter_not_older() instead of custom filters. Value should be set in seconds from now into the past.


from home.inc.php line 489

				case 'today':
					$list->filters[]= new ListFilter_today(array(
				case 'today':
					$list->filters[]= new ListFilter_not_older(array(
						'value'=> 24*60*60

Something like this. Probably we could remove the current time of day from the value...




11 years ago

You can use this, too.
case 'today':
					$list->filters[]= new ListFilter_min_week(array(
						'value'=>$f_settings['value'], 'factor'=>0
					$list->filters[]= new ListFilter_max_week(array(

The problem is that I used a new function getChanges at db_item.inc.php. There was a variable called 'today'. Now there is no variable 'today' anymore. Therefore it cannot work.

pixtur:On "today".

11 years ago (3. update 11 years ago)

But isnt' "today" a little bit ambiguous as name? Without explanation it could mean anything. A flag, a function a value. Why introduce a new function if it only changes the range?

If we filter for dates, it see to potential ways: date_min / date_max or age.
Or did I got you wrong?

burger:Okay ...

11 years ago

Your right I didn't thought about this option to use date_min/date_max or age before. So let's take it :-).

pixtur:Who will do it?

11 years ago

Do you want to give it a try? I could understand if you are hestitating now :)