Hello Isomorphic,
please see the server-side results for these two calls of the current nightly (v9.0p_2013-10-28/EVAL Deployment):
1st, anonymous subclass, with bug:
2nd, no anonymous subclass (other constructor), no bug:
On the server-side I get the Criteria via DMI for the DS:
In the 1st case, oldAC is "AdvancedCriteria:[and:[null, {TENANT_ID equals 1}, {TENANT_ID equals 0}]]",
in the 2nd case it is the expected "AdvancedCriteria:[or:[{TENANT_ID equals 1}, {TENANT_ID equals 0}]]".
Could you please confirm?
Best regards,
Blama
please see the server-side results for these two calls of the current nightly (v9.0p_2013-10-28/EVAL Deployment):
1st, anonymous subclass, with bug:
Code:
fetchData(new AdvancedCriteria([B]OperatorId.OR[/B]) { { addCriteria(new Criterion("TENANT_ID", OperatorId.EQUALS, 1)); addCriteria(new Criterion("TENANT_ID", OperatorId.EQUALS, 0)); } });
Code:
fetchData(new AdvancedCriteria([B]OperatorId.OR[/B], new Criterion[] { new Criterion("TENANT_ID", OperatorId.EQUALS, 1), new Criterion("TENANT_ID", OperatorId.EQUALS, 0) }));
Code:
AdvancedCriteria oldAc = dsRequest.getAdvancedCriteria();
in the 2nd case it is the expected "AdvancedCriteria:[or:[{TENANT_ID equals 1}, {TENANT_ID equals 0}]]".
Could you please confirm?
Best regards,
Blama
Comment