mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 19:56:10 +01:00
🎨 Add Default fill specific time switch to database date field https://github.com/siyuan-note/siyuan/issues/12089
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
15d651713c
commit
7beb2aa978
6 changed files with 14 additions and 14 deletions
|
|
@ -108,11 +108,11 @@ func RenderAttributeViewGallery(attrView *av.AttributeView, view *av.View, query
|
|||
}
|
||||
galleryCard.ID = cardID
|
||||
|
||||
filedDateAutoFill := false
|
||||
filedDateIsTime := false
|
||||
if nil != field.Date {
|
||||
filedDateAutoFill = field.Date.AutoFillNow
|
||||
filedDateIsTime = field.Date.FillSpecificTime
|
||||
}
|
||||
fillAttributeViewBaseValue(fieldValue.BaseValue, field.ID, cardID, field.NumberFormat, field.Template, filedDateAutoFill)
|
||||
fillAttributeViewBaseValue(fieldValue.BaseValue, field.ID, cardID, field.NumberFormat, field.Template, filedDateIsTime)
|
||||
galleryCard.Values = append(galleryCard.Values, fieldValue)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue