Commit 6b12a348 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

2008-10-13 Kazuhiko

* avoid an error if membership_criterion_category has no '/'.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24583 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d43a3807
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
<value> <string>cell = sci[\'object\']\n <value> <string>cell = sci[\'object\']\n
\n \n
for membership_criterion_category in cell.getMembershipCriterionCategoryList():\n for membership_criterion_category in cell.getMembershipCriterionCategoryList():\n
if membership_criterion_category.find(\'/\') != -1:\n
base_category, category = membership_criterion_category.split(\'/\', 1)\n base_category, category = membership_criterion_category.split(\'/\', 1)\n
cell.setProperty(base_category, category)\n cell.setProperty(base_category, category)\n
</string> </value> </string> </value>
......
171 172
\ No newline at end of file \ No newline at end of file
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