updated CollectionsImport and CollectionUpsert forms

This commit is contained in:
Gani Georgiev
2022-08-06 18:15:18 +03:00
parent 4e58e7ad6a
commit 5fb45a1864
10 changed files with 224 additions and 93 deletions
+4 -1
View File
@@ -183,6 +183,9 @@ func (dao *Dao) create(m models.Model) error {
m.RefreshId()
}
// mark the model as "new" since the model now always has an ID
m.MarkAsNew()
if m.GetCreated().IsZero() {
m.RefreshCreated()
}
@@ -213,7 +216,7 @@ func (dao *Dao) create(m models.Model) error {
}
}
// clears the internal isNewFlag
// clears the "new" model flag
m.UnmarkAsNew()
if dao.AfterCreateFunc != nil {