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

Home » RADICORE development » Bug Reports » filterWhereSqlWhere
filterWhereSqlWhere [message #879] Thu, 21 June 2007 11:43 Go to next message
interop is currently offline  interop
Messages: 45
Registered: October 2006
Member
This function was always returning an empty string for me.
On line 943 I added the following code and it seems to be working properly now.

} else {
// field is not duplicated, so copy to output array
if ($last_separator) {
$array_out[] = $last_separator;
$last_separator = null;
} // if
$array_out[] = $fieldname .$operator .$fieldvalue;
} // if
Re: filterWhereSqlWhere [message #880 is a reply to message #879] Thu, 21 June 2007 12:28 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
Can you give me a example of your two input strings? I would like to check your input with the current version of this function which has changed slightly.

Re: filterWhereSqlWhere [message #881 is a reply to message #879] Thu, 21 June 2007 16:18 Go to previous messageGo to next message
interop is currently offline  interop
Messages: 45
Registered: October 2006
Member
$where1 = "some_id='13'"
$where2 = "start_date <= '2007-06-21' AND end_date > '2007-06-21'"
Re: filterWhereSqlWhere [message #882 is a reply to message #881] Thu, 21 June 2007 17:32 Go to previous message
AJM is currently offline  AJM
Messages: 2347
Registered: April 2006
Location: Surrey, UK
Senior Member
You are right. There was a problem with that version, but it has been fixed in the upcoming version 1.25.0 which will be released shortly.

Previous Topic: Primary Key in not complete
Next Topic: dict_table_s03
Goto Forum:
  


Current Time: Tue Apr 23 21:53:23 EDT 2024

Total time taken to generate the page: 0.01060 seconds