Browse Source

fix: persist lock_type and owner across duplicate views

pull/9807/head
Pranav C 2 weeks ago
parent
commit
11d781bf3c
  1. 3
      packages/nocodb/src/models/View.ts
  2. 1
      packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts

3
packages/nocodb/src/models/View.ts

@ -1278,7 +1278,7 @@ export default class View implements ViewType {
'password',
'meta',
'uuid',
...(includeCreatedByAndUpdateBy ? ['owned_by', 'created_by'] : [])
...(includeCreatedByAndUpdateBy ? ['owned_by', 'created_by'] : []),
]);
const oldView = await this.get(context, viewId, ncMeta);
@ -2010,6 +2010,7 @@ export default class View implements ViewType {
'meta',
'created_by',
'owned_by',
'lock_type',
]);
if (!insertObj.order) {

1
packages/nocodb/src/modules/jobs/jobs/export-import/export.service.ts

@ -422,6 +422,7 @@ export class ExportService {
filter: view.filter,
sorts: view.sorts,
lock_type: view.lock_type,
owned_by: view.owned_by,
columns: view.columns.map((column) => {
const {
id,

Loading…
Cancel
Save