Post
by fbrano » 2019-11-06 14:02
I found out how to show modified record's ID instead auditor's table record ID.
In /admin/auditLog.php modify
line 105
from
$res=sql("SELECT `username`,`ipaddr`, `time_stmp`, `change_type`, `table_name`, `fieldName`, `OldValue`, `NewValue`, `id` FROM `Auditor` order by `time_stmp` desc limit $start, ".$adminConfig['recordsPerPage'], $eo);
to
$res=sql("SELECT `username`,`ipaddr`, `time_stmp`, `change_type`, `table_name`, `fieldName`, `OldValue`, `NewValue`, `res_id` FROM `Auditor` order by `time_stmp` desc limit $start, ".$adminConfig['recordsPerPage'], $eo);
lines 111-119
from
<td class="tdCaptionCell"><?php echo $row[8]; ?></td>
<td class="tdCaptionCell"><?php echo $row[0]; ?></td>
<td class="tdCaptionCell"><?php echo $row[1]; ?></td>
<td class="tdCaptionCell"><?php echo date('d/m/Y H:i:s',strtotime($row[2])); ?></td>
<td class="tdCaptionCell"><?php echo $row[3]; ?></td>
<td class="tdCaptionCell"><?php echo $row[4]; ?></td>
<td class="tdCaptionCell"><?php echo $row[5]; ?></td>
<td class="tdCaptionCell"><?php echo $row[6]; ?></td>
<td class="tdCaptionCell"><?php echo $row[7]; ?></td>
to
<td class="tdCaptionCell"><?php echo $row[0]; ?></td>
<td class="tdCaptionCell"><?php echo $row[1]; ?></td>
<td class="tdCaptionCell"><?php echo date('d/m/Y H:i:s',strtotime($row[2])); ?></td>
<td class="tdCaptionCell"><?php echo $row[3]; ?></td>
<td class="tdCaptionCell"><?php echo $row[4]; ?></td>
<td class="tdCaptionCell"><?php echo $row[8]; ?></td>
<td class="tdCaptionCell"><?php echo $row[5]; ?></td>
<td class="tdCaptionCell"><?php echo $row[6]; ?></td>
<td class="tdCaptionCell"><?php echo $row[7]; ?></td>
BF
ver 22.12 rev 1273