|
|
@ -2118,8 +2118,13 @@ export class ColumnsService { |
|
|
|
); |
|
|
|
); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (!link) { |
|
|
|
if (!link) { |
|
|
|
link = await ncMeta.metaGet2(null, null, MetaTable.COL_RELATIONS, { |
|
|
|
link = await ncMeta.metaGet2( |
|
|
|
xcCondition: { |
|
|
|
null, |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
MetaTable.COL_RELATIONS, |
|
|
|
|
|
|
|
{}, |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
{ |
|
|
|
_or: [ |
|
|
|
_or: [ |
|
|
|
{ fk_child_column_id: { eq: param.columnId } }, |
|
|
|
{ fk_child_column_id: { eq: param.columnId } }, |
|
|
|
{ fk_parent_column_id: { eq: param.columnId } }, |
|
|
|
{ fk_parent_column_id: { eq: param.columnId } }, |
|
|
@ -2127,7 +2132,7 @@ export class ColumnsService { |
|
|
|
{ fk_mm_parent_column_id: { eq: param.columnId } }, |
|
|
|
{ fk_mm_parent_column_id: { eq: param.columnId } }, |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// if relation found then throw error
|
|
|
|
// if relation found then throw error
|
|
|
|