OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 177
Line 193... Line 193...
193
 
193
 
194
        this.model.getSQLElement().clearPrivateFields(rowValsBis);
194
        this.model.getSQLElement().clearPrivateFields(rowValsBis);
195
 
195
 
196
        for (String elt : this.table.getClearCloneTableElement()) {
196
        for (String elt : this.table.getClearCloneTableElement()) {
197
            if (rowValsBis.getTable().getFieldsName().contains(elt)) {
197
            if (rowValsBis.getTable().getFieldsName().contains(elt)) {
-
 
198
                if (rowValsBis.getTable().getField(elt).isKey()) {
198
                rowValsBis.putEmptyLink(elt);
199
                    rowValsBis.putEmptyLink(elt);
-
 
200
                } else {
-
 
201
                    rowValsBis.put(elt, this.model.getDefaultRowValues().getObject(elt));
-
 
202
                }
199
            }
203
            }
200
        }
204
        }
201
 
205
 
202
        this.model.addRow(rowValsBis);
206
        this.model.addRow(rowValsBis);
203
    }
207
    }