Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Search date between two dates in search screen
Re: Search date between two dates in search screen [message #1843 is a reply to message #1782] Fri, 14 November 2008 11:14 Go to previous messageGo to previous message
bonzo_bcn is currently offline  bonzo_bcn
Messages: 152
Registered: June 2008
Senior Member
So what should I do to make this work?

In _cm_pre_getData the tw date fields aren't in $fieldarray, therefore this code is never executed:
	if (!empty($fieldarray['date_from']) OR !empty($fieldarray['date_to'])) {
	    $fieldarray['fecnac'] = rangeFromTo($fieldarray['date_from'], $fieldarray['date_to'], true);
	    unset($fieldarray['date_from']);
	    unset($fieldarray['date_to']);
	} // if


I can see the search fields, but it doesn't filter correctly, are there any working example?

[Updated on: Fri, 14 November 2008 11:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to default values in output4 screen?
Next Topic: Modify $report within the code
Goto Forum:
  


Current Time: Sat Aug 24 17:13:30 EDT 2024

Total time taken to generate the page: 0.01260 seconds