mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-4794 Fixes wrapField's where clause
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ public class ValueStackDataSource implements JRRewindableDataSource {
|
||||
Object value = valueStack.findValue(expression);
|
||||
LOG.debug("Field [{}] = [{}]", field.getName(), value);
|
||||
|
||||
if (!wrapField && MakeIterator.isIterable(value) && !field.getValueClass().isInstance(value)) {
|
||||
if (!wrapField && MakeIterator.isIterable(value) && field.getValueClass().isInstance(value)) {
|
||||
return value;
|
||||
} else if (MakeIterator.isIterable(value)) {
|
||||
// wrap value with ValueStackDataSource if not already wrapped
|
||||
|
||||
Reference in New Issue
Block a user