Merged in bugfix/PYPE-591_hier_attrs_fix (pull request #379)

bugfix/PYPE-591_hier_attrs_fix

Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
Jakub Trllo 2019-11-21 13:45:25 +00:00 committed by Milan Kolar
commit 61b8ebdcf7
2 changed files with 4 additions and 4 deletions

View file

@ -585,7 +585,7 @@ class SyncEntitiesFactory:
]) ])
cust_attr_query = ( cust_attr_query = (
"select value, entity_id from CustomAttributeValue " "select value, entity_id from ContextCustomAttributeValue "
"where entity_id in ({}) and configuration.key in ({})" "where entity_id in ({}) and configuration.key in ({})"
) )
[values] = self.session._call([{ [values] = self.session._call([{
@ -649,7 +649,7 @@ class SyncEntitiesFactory:
[values] = self.session._call([{ [values] = self.session._call([{
"action": "query", "action": "query",
"expression": ( "expression": (
"select value, entity_id from CustomAttributeValue " "select value, entity_id from ContextCustomAttributeValue "
"where entity_id in ({}) and configuration.key in ({})" "where entity_id in ({}) and configuration.key in ({})"
).format(entity_ids_joined, attributes_joined) ).format(entity_ids_joined, attributes_joined)
}]) }])

View file

@ -585,7 +585,7 @@ class SyncEntitiesFactory:
]) ])
cust_attr_query = ( cust_attr_query = (
"select value, entity_id from CustomAttributeValue " "select value, entity_id from ContextCustomAttributeValue "
"where entity_id in ({}) and configuration.key in ({})" "where entity_id in ({}) and configuration.key in ({})"
) )
[values] = self.session._call([{ [values] = self.session._call([{
@ -649,7 +649,7 @@ class SyncEntitiesFactory:
[values] = self.session._call([{ [values] = self.session._call([{
"action": "query", "action": "query",
"expression": ( "expression": (
"select value, entity_id from CustomAttributeValue " "select value, entity_id from ContextCustomAttributeValue "
"where entity_id in ({}) and configuration.key in ({})" "where entity_id in ({}) and configuration.key in ({})"
).format(entity_ids_joined, attributes_joined) ).format(entity_ids_joined, attributes_joined)
}]) }])