|
|
@ -1639,6 +1639,8 @@ export default class View implements ViewType { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isSystemColumn(column)) show = false; |
|
|
|
|
|
|
|
|
|
|
|
insertObjs.push({ |
|
|
|
insertObjs.push({ |
|
|
|
fk_column_id: column.id, |
|
|
|
fk_column_id: column.id, |
|
|
|
order: order++, |
|
|
|
order: order++, |
|
|
@ -1683,6 +1685,14 @@ export default class View implements ViewType { |
|
|
|
insertObjs, |
|
|
|
insertObjs, |
|
|
|
); |
|
|
|
); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case ViewTypes.FORM: |
|
|
|
|
|
|
|
await ncMeta.bulkMetaInsert( |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
MetaTable.FORM_VIEW_COLUMNS, |
|
|
|
|
|
|
|
insertObjs, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1853,7 +1863,10 @@ export default class View implements ViewType { |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// populate view columns
|
|
|
|
// populate view columns
|
|
|
|
await View.bulkColumnInsertToViews({ viewColumns, copyFromView }, insertedView); |
|
|
|
await View.bulkColumnInsertToViews( |
|
|
|
|
|
|
|
{ viewColumns, copyFromView }, |
|
|
|
|
|
|
|
insertedView, |
|
|
|
|
|
|
|
); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// populate view columns
|
|
|
|
// populate view columns
|
|
|
|
await View.bulkColumnInsertToViews( |
|
|
|
await View.bulkColumnInsertToViews( |
|
|
@ -1862,6 +1875,11 @@ export default class View implements ViewType { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await Model.getNonDefaultViewsCountAndReset( |
|
|
|
|
|
|
|
{ modelId: view.fk_model_id }, |
|
|
|
|
|
|
|
ncMeta, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return insertedView; |
|
|
|
return insertedView; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|