mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-01 22:38:49 +01:00
🎨 Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958
This commit is contained in:
parent
c4f2f37733
commit
a632f718dd
1 changed files with 7 additions and 4 deletions
|
|
@ -285,10 +285,13 @@ func SaveAttributeView(av *AttributeView) (err error) {
|
|||
}
|
||||
|
||||
for _, view := range av.Views {
|
||||
for _, column := range view.Table.Columns {
|
||||
if "" == column.ID {
|
||||
column.ID = kv.Key.ID
|
||||
break
|
||||
switch view.LayoutType {
|
||||
case LayoutTypeTable:
|
||||
for _, column := range view.Table.Columns {
|
||||
if "" == column.ID {
|
||||
column.ID = kv.Key.ID
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue