mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-03 10:37:27 +01:00
updated CollectionsImport and CollectionUpsert forms
This commit is contained in:
1 parent
4e58e7ad6a
commit
5fb45a1864
10 files changed
+224
-93
No files matched your search
+4
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user