diff --git a/entity/Organisation_entity/Organisation_entity.aod b/entity/Organisation_entity/Organisation_entity.aod index 25867776834294c05ee0459ff890c2c9fe7af468..75a3286746e7c7dde4b390f59fc46d30a3c47fbc 100644 --- a/entity/Organisation_entity/Organisation_entity.aod +++ b/entity/Organisation_entity/Organisation_entity.aod @@ -1355,7 +1355,11 @@ <indexFieldMappings> <indexRecordFieldMapping> <name>#LOCATION</name> - <systemField>LOCATION</systemField> + <indexFieldType>LOCATION</indexFieldType> + <additionalFieldNameAliases> + <element>location</element> + </additionalFieldNameAliases> + <isGlobalSearchField v="false" /> <isFilterable v="false" /> <isLookupFilter v="false" /> </indexRecordFieldMapping> diff --git a/entity/Organisation_entity/recordcontainers/index/query.js b/entity/Organisation_entity/recordcontainers/index/query.js index 278616e2223862ec3e68fea1a44f8d1b873d26d1..79b1326651647972db577e2b8919dc629c9c8187 100644 --- a/entity/Organisation_entity/recordcontainers/index/query.js +++ b/entity/Organisation_entity/recordcontainers/index/query.js @@ -24,7 +24,7 @@ var querySelect = newSelect([ sqlHelper.concat(["'" + translate.text("Phone") + ":'", "(" + CommUtil.getStandardSubSqlPhone() + ")"]), sqlHelper.concat(["'" + translate.text("Email") + ":'", "(" + CommUtil.getStandardSubSqlMail() + ")"]) ], " | "), - sqlHelper.concat([sqlHelper.cast("ADDRESS.LAT", SQLTYPES.VARCHAR, 16), sqlHelper.cast("ADDRESS.LON", SQLTYPES.VARCHAR, 16)], ","), + sqlHelper.concat([sqlHelper.cast("defaultAddress.LAT", SQLTYPES.VARCHAR, 16), sqlHelper.cast("defaultAddress.LON", SQLTYPES.VARCHAR, 16)], ","), //additional indexed fields "ORGANISATION.NAME", "ORGANISATION.ORGANISATIONID",