OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 17 Rev 19
Line 41... Line 41...
41
    public final ListSQLRequest getReq() {
41
    public final ListSQLRequest getReq() {
42
        return this.req;
42
        return this.req;
43
    }
43
    }
44
 
44
 
45
    @Override
45
    @Override
46
    protected void colsChanged(ListChangeIndex change) {
46
    protected void colsChanged(ListChangeIndex<SQLTableModelColumn> change) {
47
        super.colsChanged(change);
47
        super.colsChanged(change);
48
        // add needed fields for each new column
48
        // add needed fields for each new column
49
        for (final Object o : change.getItemsAdded()) {
49
        for (final SQLTableModelColumn col : change.getItemsAdded()) {
50
            final SQLTableModelColumn col = (SQLTableModelColumn) o;
-
 
51
            for (final FieldPath p : col.getPaths()) {
50
            for (final FieldPath p : col.getPaths()) {
52
                final SQLRowValues assurePath = this.getReq().getGraphToFetch().assurePath(p.getPath());
51
                final SQLRowValues assurePath = this.getReq().getGraphToFetch().assurePath(p.getPath());
53
                if (!assurePath.getFields().contains(p.getFieldName()))
52
                if (!assurePath.getFields().contains(p.getFieldName()))
54
                    assurePath.put(p.getFieldName(), null);
53
                    assurePath.put(p.getFieldName(), null);
55
            }
54
            }