Not sure if this was fixed already, but I had problems when I attempt
to make an appointment for a patient. I looked into the init_show.php
file and figured that the $pid was not being passed by the
$HTTP_SESSION_VARS['sess_pid'] variable. Turns out that as the pages
progress from viewing the patient registration to making an
appointment, the $HTTP_SESSION_VARS['sess_pid'] value becomes 0.
Interestingly the previous value can then be found at
$HTTP_SESSION_VARS['sess_full_pid']. I added the following lines to
init_show.php to get any valid value for pid.
if((!isset($pid)||!$pid) && $HTTP_SESSION_VARS['sess_pid'])
$pid=$HTTP_SESSION_VARS['sess_pid'];
elseif( (isset($pid)&&$pid) && !$HTTP_SESSION_VARS['sess_pid'])
$HTTP_SESSION_VARS['sess_pid']=$pid;
// added the following lines if still no value for $pid
if((!isset($pid)||!$pid) && $HTTP_SESSION_VARS['sess_full_pid']){
$pid=$HTTP_SESSION_VARS['sess_full_pid'];
if( (isset($pid)&&$pid) && !$HTTP_SESSION_VARS['sess_pid'])
$HTTP_SESSION_VARS['sess_pid']=$pid;
}
Please advise if this had already been fixed and what should I do to
get my scripts current. This is just a workaround to the real problem
which seems to be that somewhere in the script the $pid value is not
being set to the sess_pid variable or either of them is being reset to
0. Obviously this will not work it either sess_id and sess_full_id were
to be reset to 0.
Also, the patch applied to show_appointment.php
#
# Save PID to session. Patch as result of bug report from Francesco and Marco.
#
$HTTP_SESSION_VARS['sess_pid'] = $pid;
was no longer needed. I think.
Reuben J. Ravago
- [Care2002-developers] Fix for problems with making an ap... Reuben Ravago
- Re: [Care2002-developers] Fix for problems with mak... Elpidio Latorilla

