Commit 71813d00 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Check the length of selected_stats more carefully, because it is empty when it...

Check the length of selected_stats more carefully, because it is empty when it is the first time to visit Parameter.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1199 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 88889b8a
...@@ -78,11 +78,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -78,11 +78,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   
<select name="stat_columns"> <select name="stat_columns">
<span tal:repeat="stat stats"> <span tal:repeat="stat stats">
<span tal:condition="python: stat == selected_stats[row_index - 1]"> <span tal:condition="python: len(selected_stats) >= row_index and stat == selected_stats[row_index - 1]">
<option tal:content="stat" tal:attributes="value stat" value="None" selected> <option tal:content="stat" tal:attributes="value stat" value="None" selected>
</option> </option>
</span> </span>
<span tal:condition="python: stat != selected_stats[row_index - 1]"> <span tal:condition="python: len(selected_stats) < row_index or stat != selected_stats[row_index - 1]">
<option tal:content="stat" tal:attributes="value stat" value="None"> <option tal:content="stat" tal:attributes="value stat" value="None">
</option> </option>
</span> </span>
......
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