mirror of https://github.com/apache/cloudstack.git
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:
parent
154a0adc4f
commit
39ad35af2c
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue