"Applied fix from trunk for revision: 1867585"

------------------------------------------------------------------------
r1867585 | jleroux | 2019-09-26 17:38:52 +0200 (jeu. 26 sept. 2019) | 9 lignes

Fixed: Error in log when looking for parties at partymgr/control/main
(OFBIZ-11201)

These are similar issues in Minilang than the one fixed initially for
<set field="userLoginSize" value="${util:size(logins)}" type="Integer"/>
Fixed by replacing by 
<set field="userLoginSize" value="${groovy:logins.size()}"/>


------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release17.12@1867587 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2019-09-26 15:39:55 +00:00
parent 571666c737
commit da148eb593
4 changed files with 6 additions and 6 deletions
@@ -186,7 +186,7 @@ under the License.
</entity-condition>
<set field="listSize" value="0" type="Long"/>
<if-not-empty field="maintList">
<set field="listSize" value="${util:size(maintList)}" type="Long"/>
<set field="listSize" value="${groovy:maintList.size()}" type="Long"/>
</if-not-empty>
<set field="maxIntervalQty" value="0" type="BigDecimal"/>
<iterate list="maintList" entry="maintValue">
@@ -263,7 +263,7 @@ under the License.
<if-not-empty field="compareDate">
<set field="listSize" value="0" type="Long"/>
<if-not-empty field="maintList">
<set field="listSize" value="${util:size(maintList)}" type="Long"/>
<set field="listSize" value="${groovy:maintList.size()}" type="Long"/>
</if-not-empty>
<set field="lastSvcLong" value="0" type="Long"/>
<set field="lastSvcDate" from-field="lastSvcLong" type="Timestamp"/>
@@ -933,11 +933,11 @@ under the License.
<field-map field-name="orderId" from-field="parameters.originOrderId"/>
<field-map field-name="returnTypeId" value="RTN_REFUND"/>
</entity-and>
<set field="returnItemSize" value="${util:size(returnItems)}" type="Long"/>
<set field="returnItemSize" value="${groovy:returnItems.size()}" type="Long"/>
<entity-and entity-name="OrderItem" list="orderItems">
<field-map field-name="orderId" from-field="parameters.orderId"/>
</entity-and>
<set field="orderItemSize" value="${util:size(orderItems)}" type="Long"/>
<set field="orderItemSize" value="${groovy:orderItems.size()}" type="Long"/>
<if>
<condition>
<if-compare-field field="returnItemSize" operator="greater" to-field="orderItemSize" type="Long"/>
@@ -188,7 +188,7 @@ under the License.
<!-- count no. of locations in location list -->
<set field="locationCount" value="0"/>
<if-not-empty field="locations">
<set field="locationCount" value="${util:size(locations)}" type="Long"/>
<set field="locationCount" value="${groovy:locations.size()}" type="Long"/>
</if-not-empty>
<!-- If order items are picked from different locations of a facility, then create a new group called multiple locations. This order will now belong to this new group -->
@@ -1368,7 +1368,7 @@ under the License.
</condition-list>
<order-by field-name="contactMechPurposeTypeId"/>
</entity-condition>
<if-compare field="util:size(contactMechs)" operator="greater" value="0" type="Integer">
<if-compare field="${groovy:contactMechs.size()}" operator="greater" value="0" type="Integer">
<field-to-result field="contactMechs[0].infoString" result-name="iCalUrl"/>
</if-compare>
</simple-method>