Add deletions to changelog

This commit is contained in:
“VeLiTi”
2024-04-25 09:50:09 +02:00
parent 10e18030bb
commit 665de3436f
8 changed files with 23 additions and 0 deletions

View File

@@ -217,6 +217,8 @@ elseif ($command == 'delete' && (isAllowed('equipment_manage',$profile,$permissi
//delete history related to equipment
$stmt = $pdo->prepare('DELETE FROM history WHERE equipmentid = ?');
$stmt->execute([ $id ]);
//Add deletion to changelog
changelog($dbname,'equipment',$id,'Delete','Delete',$username);
} else
{
//do nothing