Auto-commit local changes before build (2026-01-19 13:50:00)

This commit is contained in:
Ivo Oskamp 2026-01-19 13:50:00 +01:00
parent d272d12d24
commit c595c165ed
3 changed files with 13 additions and 4 deletions

View File

@ -1 +1 @@
v20260119-07-autotask-propagate-ticket-to-all-runs v20260119-08-autotask-disable-toggle-persist

View File

@ -435,8 +435,10 @@ def settings():
settings.ui_timezone = (request.form.get("ui_timezone") or "").strip() or "Europe/Amsterdam" settings.ui_timezone = (request.form.get("ui_timezone") or "").strip() or "Europe/Amsterdam"
# Autotask integration # Autotask integration
if "autotask_enabled" in request.form: # Checkbox inputs are omitted from request.form when unchecked.
settings.autotask_enabled = bool(request.form.get("autotask_enabled")) # Only apply the enabled toggle when the Autotask form was submitted.
if autotask_form_touched:
settings.autotask_enabled = "autotask_enabled" in request.form
if "autotask_environment" in request.form: if "autotask_environment" in request.form:
env_val = (request.form.get("autotask_environment") or "").strip().lower() env_val = (request.form.get("autotask_environment") or "").strip().lower()

View File

@ -250,12 +250,19 @@ Changes:
## v20260119-07-autotask-propagate-ticket-to-all-runs ## v20260119-07-autotask-propagate-ticket-to-all-runs
Changes: ### Changes:
- Fixed ticket propagation logic so Autotask ticket numbers are applied to all open runs (reviewed_at IS NULL), not only the most recent run. - Fixed ticket propagation logic so Autotask ticket numbers are applied to all open runs (reviewed_at IS NULL), not only the most recent run.
- Ensured runs that already had an autotask_ticket_id but were missing the autotask_ticket_number are now correctly updated. - Ensured runs that already had an autotask_ticket_id but were missing the autotask_ticket_number are now correctly updated.
- Restored legacy behavior where all active runs for the same job consistently display the linked ticket in Tickets, Tickets/Remarks, and Job Details. - Restored legacy behavior where all active runs for the same job consistently display the linked ticket in Tickets, Tickets/Remarks, and Job Details.
- Prevented partial ticket linkage that caused only the newest run to show the ticket number. - Prevented partial ticket linkage that caused only the newest run to show the ticket number.
## v20260119-08-autotask-disable-toggle-persist
### Changes:
- Fixed persistence of the “Enable Autotask integration” setting so disabling the integration is correctly saved.
- Updated form handling to explicitly set the Autotask enabled flag when the checkbox is unchecked, instead of implicitly keeping the previous value.
- Prevented the Autotask integration from being automatically re-enabled after saving settings.
*** ***
## v0.1.21 ## v0.1.21