mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve duplicating doc/av https://github.com/siyuan-note/siyuan/issues/15786
This commit is contained in:
parent
d2f990a830
commit
305bd9dfb0
4 changed files with 16 additions and 3 deletions
|
|
@ -1094,7 +1094,9 @@ func DuplicateDatabaseBlock(avID string) (newAvID, newBlockID string, err error)
|
|||
return
|
||||
}
|
||||
|
||||
newAv.Name = oldAv.Name + " (Duplicated " + time.Now().Format("2006-01-02 15:04:05") + ")"
|
||||
if "" != newAv.Name {
|
||||
newAv.Name = oldAv.Name + " (Duplicated " + time.Now().Format("2006-01-02 15:04:05") + ")"
|
||||
}
|
||||
|
||||
for _, keyValues := range newAv.KeyValues {
|
||||
if nil != keyValues.Key.Relation && keyValues.Key.Relation.IsTwoWay {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue