Applied bug fix from trunk r1636493
use of wrong field name: https://issues.apache.org/jira/browse/OFBIZ-5846
This commit also fixes issue - OFBIZ-5806

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release13.07@1639857 13f79535-47bb-0310-9956-ffa450edef68