From 675a08d4bb9351279fcb012b226fa649e545a672 Mon Sep 17 00:00:00 2001 From: Janis Steiner Date: Thu, 20 Mar 2025 16:54:39 +0000 Subject: [PATCH] . --- sys0-code/app/print.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys0-code/app/print.php b/sys0-code/app/print.php index 7b741c1..264cc97 100644 --- a/sys0-code/app/print.php +++ b/sys0-code/app/print.php @@ -93,6 +93,7 @@ data.forEach(item => { const option = document.createElement("option"); option.value = item.id; + if(item.error_status==0){ if(item.free==1){ option.textContent = `Drucker ${item.id} - ${item.color}`; }else{ @@ -102,6 +103,7 @@ option.selected = true; } selectElement.appendChild(option); + } }); }) .catch(error => console.error("Error fetching data:", error));