Applied fix from trunk for revision: 1612190 
===

Fixed bug I introduced in rev. 1610918: thanks to Deepak Dixit for the bug report and resolution.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release11.04@1612486 13f79535-47bb-0310-9956-ffa450edef68
Applied fix from trunk for revision: 1611321 
===

This reverts most of the changes committed in rev.951013 for OFBIZ-3802 because they caused a few issues as reported in the same Jira ticket.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release11.04@1612487 13f79535-47bb-0310-9956-ffa450edef68