Commit 02000191 authored by Yoshinori Okuji's avatar Yoshinori Okuji

getAggregateUidList should be accessed by loop_item. Reported by Guillaume.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3828 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e73d2ed3
...@@ -27,7 +27,7 @@ WHERE ...@@ -27,7 +27,7 @@ WHERE
<dtml-let movement_list="[]"> <dtml-let movement_list="[]">
<dtml-in prefix="loop" expr="_.range(_.len(uid))"> <dtml-in prefix="loop" expr="_.range(_.len(uid))">
<dtml-if "isMovement[loop_item]"> <dtml-if "isMovement[loop_item] and getAggregateUidList[loop_item]">
<dtml-call expr="movement_list.append(loop_item)"> <dtml-call expr="movement_list.append(loop_item)">
</dtml-if> </dtml-if>
</dtml-in> </dtml-in>
...@@ -36,7 +36,7 @@ INSERT INTO ...@@ -36,7 +36,7 @@ INSERT INTO
item item
VALUES VALUES
<dtml-in prefix="loop" expr="movement_list"> <dtml-in prefix="loop" expr="movement_list">
<dtml-if getAggregateUidList><dtml-in getAggregateUidList> <dtml-in "getAggregateUidList[loop_item]">
( (
<dtml-sqlvar expr="uid[loop_item]" type="int">, <dtml-sqlvar expr="uid[loop_item]" type="int">,
<dtml-sqlvar expr="getStopDate[loop_item]" type="datetime" optional>, <dtml-sqlvar expr="getStopDate[loop_item]" type="datetime" optional>,
...@@ -46,8 +46,9 @@ VALUES ...@@ -46,8 +46,9 @@ VALUES
<dtml-sqlvar sequence-item type="int" optional>, <dtml-sqlvar sequence-item type="int" optional>,
<dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional> <dtml-sqlvar expr="getVariationText[loop_item]" type="string" optional>
) )
<dtml-if sequence-end><dtml-else>,</dtml-if></dtml-in></dtml-if> <dtml-if sequence-end><dtml-else>,</dtml-if>
<dtml-if sequence-end><dtml-else>,</dtml-if> </dtml-in>
<dtml-if sequence-end><dtml-else>,</dtml-if>
</dtml-in> </dtml-in>
</dtml-if> </dtml-if>
</dtml-let> </dtml-let>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment