CMXX - Changed history to equipment_history
This commit is contained in:
@@ -236,7 +236,7 @@ elseif ($command == 'delete' && (isAllowed('equipment_manage',$profile,$permissi
|
||||
$stmt = $pdo->prepare('DELETE FROM equipment WHERE rowID = ? '.$whereclause.'');
|
||||
$stmt->execute([ $id ]);
|
||||
//delete history related to equipment
|
||||
$stmt = $pdo->prepare('DELETE FROM history WHERE equipmentid = ?');
|
||||
$stmt = $pdo->prepare('DELETE FROM equipment_history WHERE equipmentid = ?');
|
||||
$stmt->execute([ $id ]);
|
||||
//Add deletion to changelog
|
||||
changelog($dbname,'equipment',$id,'Delete','Delete',$username);
|
||||
|
||||
Reference in New Issue
Block a user