Commit ba183fc7 authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: sort SoftwareProduct getVariationBaseCategoryList's result

parent ac36e283
......@@ -101,3 +101,9 @@ class SoftwareProduct(ERP5SoftwareProduct):
return result
def getVariationBaseCategoryList(self, *args, **kw):
# Sort the base category list, to prevent optional variation to be at the end
# which prevent so easily sort the variation_list when filling matrixbox
result_list = super(SoftwareProduct, self).getVariationBaseCategoryList(*args, **kw)
result_list.sort()
return result_list
\ 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