Commit 0525ae83 authored by Romain Courteaud's avatar Romain Courteaud

Bug correction.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2255 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d03f98b0
......@@ -649,11 +649,11 @@ class Resource(XMLMatrix, CoreResource, Variated):
p.setTitle('%s <= quantity < %s' % (repr(value[i]),repr(value[i+1])))
# end
i = i + 1
i = len(value) - 1
p = self.newContent(id = 'quantity_range_%s' % str(i+1), portal_type = 'Predicate Group')
p.setCriterionPropertyList(('quantity', ))
p.setCriterion('quantity', min=value[i], max=None)
p.setTitle(' quantity < %s' % repr(value[i]))
p.setTitle('%s <= quantity' % repr(value[i]))
self.updateSupplyMatrix()
......
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