diff --git a/shared/web/widgets.py b/shared/web/widgets.py index 17d3e65a..70a9f842 100644 --- a/shared/web/widgets.py +++ b/shared/web/widgets.py @@ -932,12 +932,8 @@ class Multi(WidgetMixin, proxyWidgets.Multi): def getModelHiddenLayout(self, slot, fields, children = 1): countName = slot.getFieldOptionName('count') - count = slot.getKind().getMinCount(slot) - try: - count = max(count, int(slot.getFieldOption( - fields, 'count', default = '0'))) - except ValueError: - pass + kind = slot.getKind() + count = kind.getItemsCount(slot, fields) layout = X.array() if count: layout += X.input(name = countName, type = 'hidden', value = count)