* Make Property.getBooleanValue() try to convert strings to integers.
Fixes bug 606 http://helma.org/bugs/show_bug.cgi?id=606
This commit is contained in:
parent
24fbb853f4
commit
6bd3e78dfb
1 changed files with 1 additions and 5 deletions
|
@ -459,11 +459,7 @@ public final class Property implements IProperty, Serializable, Cloneable, Compa
|
|||
return ((Boolean) value).booleanValue();
|
||||
}
|
||||
|
||||
if (type == INTEGER || type == FLOAT) {
|
||||
return !(0 == getIntegerValue());
|
||||
}
|
||||
|
||||
return false;
|
||||
return 0 != getIntegerValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue