This commit is contained in:
Daniel 2025-09-06 08:28:54 +08:00
parent d2f990a830
commit 305bd9dfb0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 16 additions and 3 deletions

View file

@ -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 {