Commit 870dab1d authored by Alexandre Boeglin's avatar Alexandre Boeglin

property should be a substring of column (beginning), not a single character

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17390 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c8de7eb1
......@@ -95,8 +95,7 @@ class DomainTool(BaseTool):
if (column.endswith('_range_min')) or \
(column.endswith('_range_max')):
range_property = 1
# XXX FIXME: what means property here ?
property = column[-len('_range_min')]
property = column[:-len('_range_min')]
if ('%s_range_min' % column) in column_list:
range_property = 1
property = column
......
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