Skip to content

Commit d288bc8

Browse files
authored
Merge pull request #13 from bci-oss/bug/#10
Add MultiLanguageText properties to searchColumns list of a filter service
2 parents 12a9a42 + 7c92002 commit d288bc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng-generate/table/generators/ts-filter-service.generator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,14 @@ export class TsFilterServiceGenerator {
411411
if (property.effectiveDataType?.isComplex && property.characteristic instanceof DefaultSingleEntity) {
412412
const complexProps = this.options.templateHelper.getComplexProperties(property, this.options);
413413
complexProps.properties.forEach((complexProp: Property) => {
414-
if (!this.options.templateHelper.isStringProperty(complexProp)) {
414+
if (!this.options.templateHelper.isStringProperty(complexProp) && !this.options.templateHelper.isMultiStringProperty(complexProp)) {
415415
return;
416416
}
417417
stringProps.push(`'${complexProps.complexProp}.${complexProp.name}'`);
418418
return;
419419
});
420420
}
421-
if (this.options.templateHelper.isStringProperty(property)) {
421+
if (this.options.templateHelper.isStringProperty(property) || this.options.templateHelper.isMultiStringProperty(property)) {
422422
stringProps.push(`'${property.name}'`);
423423
}
424424
});

0 commit comments

Comments
 (0)