fixing bug in freeing printer used by external user

This commit is contained in:
root
2024-12-22 10:02:49 +00:00
parent 3e55c6262a
commit abf8ba3af6

View File

@@ -30,7 +30,7 @@
mysqli_stmt_store_result($stmt); mysqli_stmt_store_result($stmt);
mysqli_stmt_bind_result($stmt, $cnt); mysqli_stmt_bind_result($stmt, $cnt);
mysqli_stmt_fetch($stmt); mysqli_stmt_fetch($stmt);
$sql="update printer set free=1,printing=0,cancel=0 ,used_by_userid=0 where id=$printer_id"; $sql="update printer set free=1,printing=0,cancel=0 ,used_by_userid=0, system_status=0 where id=$printer_id";
$stmt = mysqli_prepare($link, $sql); $stmt = mysqli_prepare($link, $sql);
mysqli_stmt_execute($stmt); mysqli_stmt_execute($stmt);
//try to find out how much filament was used //try to find out how much filament was used