This commit is contained in:
Daniel 2025-08-21 22:25:41 +08:00
parent 35de72f64d
commit 4598e3237b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 22 additions and 3 deletions

View file

@ -148,6 +148,13 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, group
newValue = getNewValueByNearItem(nearItem, keyValues.Key, addingItemID)
}
if nil != newValue {
if av.KeyTypeDate == keyValues.Key.Type {
if nil != nearItem {
nearValue := getNewValueByNearItem(nearItem, keyValues.Key, addingItemID)
newValue.Date.IsNotTime = nearValue.Date.IsNotTime
}
}
ret[keyValues.Key.ID] = newValue
}
}