bug 10759: fixed the bug in SqlGenerator - attributes weren't set right if GENERIC.DAO.REMOVED attribute was present in the list (happened for disk and service offerings)

status 10759: resolved fixed
This commit is contained in:
alena 2011-07-21 18:27:34 -07:00
parent 154a0adc4f
commit 39ad35af2c
1 changed files with 5 additions and 5 deletions

View File

@ -280,11 +280,11 @@ public class SqlGenerator {
public Attribute findAttribute(String name) {
for (Attribute attr : _attributes) {
if (attr.columnName.equals(GenericDao.REMOVED) && attr.isUpdatable()) {
return null;
}
if (attr.columnName.equals(name)) {
if (attr.columnName.equalsIgnoreCase(name)) {
if (attr.columnName.equalsIgnoreCase(GenericDao.REMOVED) && attr.isUpdatable()) {
return null;
}
return attr;
}
}