Corrections to calculated order values from "before" and "after" attributes.
This commit is contained in:
parent
acf5601714
commit
e6d6e88117
|
@ -58,11 +58,11 @@ public class OrderedFilterBeanDefinitionDecorator implements BeanDefinitionDecor
|
|||
String before = elt.getAttribute(ATT_BEFORE);
|
||||
|
||||
if (StringUtils.hasText(after)) {
|
||||
return FilterChainOrder.getOrder(after).toString();
|
||||
return Integer.toString(FilterChainOrder.getOrder(after) + 1);
|
||||
}
|
||||
|
||||
if (StringUtils.hasText(before)) {
|
||||
return FilterChainOrder.getOrder(before).toString();
|
||||
return Integer.toString(FilterChainOrder.getOrder(before) - 1);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue