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'; ?>