Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045468Retail ModulesWeb POSpublic2020-11-20 04:422020-11-23 11:21
lbressan 
Retail 
normalmajorhave not tried
newopen 
5
 
 
No
0045468: Bug in the ProcessHQLQuery infrastructure. The system throws an error when there are more than one hqlQuery on a model.
The system throws an error on the following line of the ProcessHQLQuery class:

for (int i = 0; i < queries.size(); i++) {
        if (limit == 0) {
          break;
        }
        String hqlQuery = queries.get(i);
        HQLPropertyList hqlProperty;
        if (properties != null) {
          hqlProperty = properties.get(i);
        } else {
          hqlProperty = null;
        }

All are fine when you have only one query, but when the system is trying to execute a second query, the system crashes, because it is trying to get a property in position 1, and there was only one element in the properties list.
On a model, in the method:
  @Override
  protected List<String> getQuery(JSONObject jsonsent)
Add more than one query to the return.

Login into the POS.
No tags attached.
Issue History
2020-11-20 04:42lbressanNew Issue
2020-11-20 04:42lbressanAssigned To => Retail
2020-11-20 04:42lbressanTriggers an Emergency Pack => No
2020-11-23 11:21marvintmProjectPOS2 => Retail Modules
2020-11-23 11:21marvintmCategoryCore => Web POS

There are no notes attached to this issue.