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

Home » RADICORE » How To » choosing "new" with an item selected in list2
Re: choosing "new" with an item selected in list2 [message #1127 is a reply to message #1126] Wed, 10 October 2007 04:39 Go to previous messageGo to previous message
AJM is currently offline  AJM
Messages: 2367
Registered: April 2006
Location: Surrey, UK
Senior Member
Here is a better fix - update the childForm() function inside 'include.session.inc' from this:
        if (isset($post['select'])) {
            // convert selection into SQL where format
            $pkey_array = $dbobject->getPkeyArray(null, $task_array);
            $selection = selection2where($pkey_array, $post['select']);
        } elseif (count($object_array) == 1 AND $pattern_id != 'LIST1') {

to this:
        if (isset($post['select'])) {
            if ($pattern_id == 'LIST2' AND $task_array['pattern_id'] == 'ADD2') {
                // for LIST2->ADD2 any selection must be ignored
            	$selection = null;
            } else {
                // convert selection into SQL where format
                $pkey_array = $dbobject->getPkeyArray(null, $task_array);
                $selection = selection2where($pkey_array, $post['select']);
            } // if
        } elseif (count($object_array) == 1 AND $pattern_id != 'LIST1') {


 
Read Message
Read Message
Read Message
Read Message
Previous Topic: multi3
Next Topic: selection remaining
Goto Forum:
  


Current Time: Fri Nov 22 20:54:39 EST 2024

Total time taken to generate the page: 0.00934 seconds