Fix: SQL Query für Location Filter und JS Scope Probleme behoben
All checks were successful
Docker Build & Push / build-and-push (push) Successful in 40s

This commit is contained in:
Gemini CLI
2026-05-16 16:03:15 +00:00
parent 3c77805a29
commit 064fda1e0d
2 changed files with 1 additions and 21 deletions

View File

@@ -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 () {
});
</script>
<?php require_once 'footer.php'; ?>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();
});
</script>
<?php require_once 'footer.php'; ?>

View File

@@ -398,4 +398,3 @@ function printDiv(divId) {
</div>
<?php require_once 'footer.php'; ?>
php require_once 'footer.php'; ?>