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

Home » RADICORE development » Bug Reports » getInitialDataMultiple does not deal with ') OR (' in $where parameter
Re: getInitialDataMultiple does not deal with ') OR (' in $where parameter [message #1140 is a reply to message #1139] Thu, 25 October 2007 05:40 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2371
Registered: April 2006
Location: Surrey, UK
Senior Member
I've had a play with this and changed the getInitialDataMultiple() method so that it outputs a multi-dimensional array (indexed by row number, then associative for each row) instead of an associatve array for a single row only. This will be released in version 1.30.0 which will be available shortly.

In the meantime you can try this code - in the getInitialDataMultiple() method of std.table.class.inc change this:
        if (!empty($where)) {
            if (is_array($where)) {
                $fieldarray = $where;
            } else {
                // convert 'where' string to an associative array
                $fieldarray = where2array($where);
            } // if
        } else {
            $fieldarray = array();
        } // if
to this:
        if (!empty($where)) {
            if (is_array($where)) {
                $fieldarray = $where;
            } else {
                // convert 'where' string to an array which is indexed by row number
                $array1 = splitWhereByRow($where);
                // convert 'where' for each row into an associative array
                foreach ($array1 as $rownum => $rowdata) {
                    $fieldarray[] = where2array($rowdata);
                } // foreach
            } // if
        } else {
            $fieldarray = array();
        } // if

Let me know if this solves your problem.


 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: using Popup on outer table of MULTI4
Next Topic: calling ADD2 from LIST1 with $where set.
Goto Forum:
  


Current Time: Fri Nov 29 02:51:33 EST 2024

Total time taken to generate the page: 0.00921 seconds