Skip to content
Snippets Groups Projects
Commit 81e9125b authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

address childGroup fix query

parent 26a70232
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ if (vars.exists("$local.idvalue")) {
}
result.string(db.translateStatement(SqlCondition.begin()
.andIn(ADDRESS.ADDRESSID, affectedIds.map(function (v){return db.quote(v);}))
.andIn("ADDRESS.ADDRESSID", affectedIds)
.buildSql("select \n\
ADDRESS.ADDRESSID as \"_uid_\", \n\
ADDRESS.ADDRESSID, \n\
......@@ -17,4 +17,4 @@ result.string(db.translateStatement(SqlCondition.begin()
ADDRESS.CITY as CITY, \n\
ADDRESS.COUNTRY, \n\
ADDRESS.ADDRESS, \n\
ADDRESS.BUILDINGNO", "", "order by ADDRESS.ADDRESSID")));
\ No newline at end of file
ADDRESS.BUILDINGNO from ADDRESS", "", "order by ADDRESS.ADDRESSID")));
\ No newline at end of file
import("Sql_lib");
import("Contact_lib");
import("system.translate");
import("system.db");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment