Commit e9812259 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Check if selected_stats is large enough.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1089 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 482bbd00
...@@ -107,11 +107,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -107,11 +107,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]" tal:on-error="string: row_index"> <span tal:condition="python: len(selected_stats) >= row_index and stat == selected_stats[row_index - 1]" tal:on-error="string: row_index">
<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]" tal:on-error="string: row_index"> <span tal:condition="python: len(selected_stats) < row_index or stat != selected_stats[row_index - 1]" tal:on-error="string: row_index">
<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