Commit Graph
2 Commits
Author SHA1 Message Date
Edwin 4161c9739f Fix database schema and item handling
- Add missing created_at and updated_at columns to items table
- Update Item model to handle timestamp fields
- Fix ItemController to work with new database schema
- Resolves 500 Internal Server Error on /api/items endpoint
2025-11-12 16:29:45 +00:00
Edwin d5ac2a21b3 Fix JavaScript tree reload after CRUD operations
- Add reloadTree() function to centralize tree updates
- Fix handleSaveEditItem to reload tree after item updates
- Fix handleAddItem to reload tree after adding items
- Fix handleDeleteItem to reload tree after item deletion
- Fix all category functions to reload tree after operations
- Replace broken Bootstrap.Modal.getInstance() with direct DOM manipulation
- Fix JavaScript syntax errors and missing braces
- Ensure tree updates automatically without manual page reload

Resolves issue where tree navigation was not updating after item modifications.
2025-11-12 16:29:35 +00:00