KamoCRM

Starting a clinical note no longer fails on updated_at (SITP TP23 live smoke)

FixSecurityService
Shipped
October 18, 2026 at 10:14 PM UTC
Author
Kamo
Commit
443ca50

ClinicalBaseEntity.updated_at is NOT NULL and defaulted by the database on INSERT only (insertable = false), so a note just inserted holds null in memory and the second save that names its first version wrote updated_at = NULL: every new note answered 500 (constraint violation). The update now names the time itself.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing