OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 142 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 142 Rev 144
Line 79... Line 79...
79
            final Where where = this.hasSelectedValue() ? new Where(this.request.getPrimaryTable().getKey(), "=", this.getSelectedValue().getId()) : null;
79
            final Where where = this.hasSelectedValue() ? new Where(this.request.getPrimaryTable().getKey(), "=", this.getSelectedValue().getId()) : null;
80
            final List<IComboSelectionItem> items = this.request.getComboItems(true, Arrays.asList(QUERY_SPLIT_PATTERN.split(this.filter)), Locale.getDefault(), where);
80
            final List<IComboSelectionItem> items = this.request.getComboItems(true, Arrays.asList(QUERY_SPLIT_PATTERN.split(this.filter)), Locale.getDefault(), where);
81
 
81
 
82
            System.err.println("LightAutoCompleteComboBox.applyFilter() - items count: " + items.size());
82
            System.err.println("LightAutoCompleteComboBox.applyFilter() - items count: " + items.size());
83
            for (final IComboSelectionItem item : items) {
83
            for (final IComboSelectionItem item : items) {
-
 
84
                int id = item.getId();
-
 
85
                String label = item.getLabel();
-
 
86
                System.err.println("LightAutoCompleteComboBox.applyFilter() " + id + " : " + label);
84
                this.addValue(new LightUIComboBoxElement(item.getId(), item.getLabel()));
87
                this.addValue(new LightUIComboBoxElement(id, label));
85
            }
88
            }
86
 
89
 
87
            this.setSelectedId(selectedId);
90
            this.setSelectedId(selectedId);
88
        }
91
        }
89
    }
92
    }