LogView bad work

/interface/logview/logview.php? on Open EMR 5.0.1 not filtering data by patient ID, actually I find an appt history, becouse it is deletted…I don’t found the Insert Query for this appt

@Oscar_Roman
to find the insert you have to search the comments column with something like a wildcard
select comments from log where comments LIKE ‘%openemr_postcalendar%’ AND pid = ?

this too seems like another log issue, Appt delete for audit, since it sounds like the patient_id field is not populated

@Oscar_Roman,
Can you try by including scheduling event in the below file?
File: library/log.inc

/* If the event is a patient-record, then note the patient id */
$pid = 0;
if ($event == “patient-record” || $event == “scheduling”) {
if (array_key_exists(‘pid’, $_SESSION) && $_SESSION[‘pid’] != ‘’) {
$pid = $_SESSION[‘pid’];
}
}

Thanks,
ViSolve