From 064fda1e0d443fcc3e2b639dc950209c19905c5b Mon Sep 17 00:00:00 2001 From: Gemini CLI Date: Sat, 16 May 2026 16:03:15 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20SQL=20Query=20f=C3=BCr=20Location=20Filt?= =?UTF-8?q?er=20und=20JS=20Scope=20Probleme=20behoben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/articles.php | 21 +-------------------- src/storage_locations.php | 1 - 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/src/articles.php b/src/articles.php index 6855258..a8cf2bf 100644 --- a/src/articles.php +++ b/src/articles.php @@ -85,7 +85,7 @@ $sql = "SELECT u.username as creator_name, a.household_id, a.product_designation, c.id AS category_id, c.name AS category_name, c.color AS category_color, m.id AS manufacturer_id, m.name AS manufacturer_name, - l2.name AS location_level2_name, l1.name AS location_level1_name + a.storage_location_id, l2.name AS location_level2_name, l1.name AS location_level1_name FROM articles a JOIN users u ON a.user_id = u.id LEFT JOIN categories c ON a.category_id = c.id @@ -729,23 +729,4 @@ document.addEventListener('DOMContentLoaded', function () { }); -le); - filterManufacturer.addEventListener('change', renderTable); - - document.getElementById('btn-expand-all').addEventListener('click', function() { - collapsedCategories.clear(); - renderTable(); - }); - - document.getElementById('btn-collapse-all').addEventListener('click', function() { - // Find all currently rendered categories - const visibleCategories = Array.from(document.querySelectorAll('.category-header')).map(el => el.getAttribute('data-category')); - visibleCategories.forEach(c => collapsedCategories.add(c)); - renderTable(); - }); - - renderTable(); -}); - - \ No newline at end of file diff --git a/src/storage_locations.php b/src/storage_locations.php index 1d6e2e3..203f4f1 100644 --- a/src/storage_locations.php +++ b/src/storage_locations.php @@ -398,4 +398,3 @@ function printDiv(divId) { -php require_once 'footer.php'; ?>