mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +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
|
|
@ -3303,7 +3303,7 @@ func addAttributeViewBlock(now int64, avID, dbBlockID, viewID, groupID, previous
|
|||
if nil == val { // 避免覆盖已有值(可能前面已经通过过滤或者分组条件填充了值)
|
||||
dateVal := &av.Value{
|
||||
ID: ast.NewNodeID(), KeyID: keyValues.Key.ID, BlockID: addingItemID, Type: av.KeyTypeDate, IsDetached: isDetached, CreatedAt: now, UpdatedAt: now + 1000,
|
||||
Date: &av.ValueDate{Content: now, IsNotEmpty: true},
|
||||
Date: &av.ValueDate{Content: now, IsNotEmpty: true, IsNotTime: !keyValues.Key.Date.FillSpecificTime},
|
||||
}
|
||||
keyValues.Values = append(keyValues.Values, dateVal)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue