Browse Source

Merge pull request #1870 from nocodb/fix/1866-bt-lookup

fix: correction in belongs to lookup filter query generation
pull/1877/head
navi 3 years ago committed by GitHub
parent
commit
36d77ac84b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nocodb/src/lib/dataMapper/lib/sql/conditionV2.ts

2
packages/nocodb/src/lib/dataMapper/lib/sql/conditionV2.ts

@ -349,7 +349,7 @@ async function generateLookupCondition(
};
} else if (relationColumnOptions.type === RelationTypes.BELONGS_TO) {
qb = knex(`${parentModel.table_name} as ${alias}`);
qb.select(`${alias}.${childColumn.column_name}`);
qb.select(`${alias}.${parentColumn.column_name}`);
await nestedConditionJoin(
{

Loading…
Cancel
Save