Hi everybody!
This is Marco & Francesco speaking.
We get another bug and another fix just for you all!!!
When you try to modify an appointment there could be some problems. If you
enter in the data of a person (i.e. John Smith) and then you go to the
appointment if you try to modify any appointment (i.e. Mary Poppins'
appointment) you'll notice that you have the right screen for the
modifications (the Mary Poppins' one), but then you get to the screen
relative to John Smith!!!And so Mary's appointment now belongs to
John!!!ARGGHH!!!

We suggest this simple fix, in save_admission_data.inc.php under
care/modules/registration_admission/include/ folder:

$obj->setDataArray($HTTP_POST_VARS);
switch($mode){
                case 'create':
                                                                
if($obj->insertDataFromInternalArray()) {
                                                                        
if(!$no_redirect){
                                                                                
header("location:".$thisfile.URL_REDIRECT_APPEND."&target=$target&type_nr=$type_nr&allow_update=1&pid=".$HTTP_SESSION_VARS['sess_pid']);
//echo "$obj->getLastQuery<br>$LDDbNoSave";
                                                                                exit;
                                                                        }
                                                                } else echo 
"$obj->getLastQuery<br>$LDDbNoSave";
                                                                break;
                case 'update':
                                                                
$HTTP_POST_VARS['pid']=$_GET['pid'];###OUR ADD
                                                                
$obj->setDataArray($HTTP_POST_VARS);###OUR ADD
                                                                $obj->where=' nr='.$nr;
                                                                
if($obj->updateDataFromInternalArray($nr)) {
                                                                        
if(!$no_redirect){
        
header("location:".$thisfile.URL_REDIRECT_APPEND."&target=$target&type_nr=$type_nr&allow_update=1&pid=".$_GET['pid']);###OUR
MODIFICATION HERE IS THE GET variable INSTEAD OF THE HTTP_POST_VARS
one!!!!
                                                                                //echo 
"$obj->sql<br>$LDDbNoUpdate";
                                                                                exit;
                                                                        }
                                                                } else echo 
"$obj->getLastQuery<br>$LDDbNoUpdate";
                                                                break;
}// end of switch
}
?>

We are at the last lines of the file, so will be simple to identify the
code portion.
As usual we hope our help will be useful for someone!!!
Cheers,
Francesco & Marco









-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Care2002-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/care2002-developers

Reply via email to