mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-03 20:56:18 +02:00
The previous fix passed target_model from the frontend, but this relied on printer.model being set on the client. When a printer was added without selecting a model (the field is optional), the frontend sent no target_model parameter, causing the OR logic to be bypassed entirely — the widget only queried printer_id=X and missed unassigned model-based items. The backend now looks up the printer's model from the database when target_model isn't provided by the client, ensuring "Clear Plate & Start Next" appears for model-based queue jobs regardless of how the printer was configured.