Skip to content

Commit

Permalink
Back-end fix for Tool Form page repeating elements/fields' MIN/DEFAUL…
Browse files Browse the repository at this point in the history
…T parameter
  • Loading branch information
hujambo-dunia committed Nov 14, 2023
1 parent e535633 commit 1b89fa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/tools/parameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,10 @@ def _populate_state_legacy(
del group_state[:]
while True:
rep_prefix = "%s_%d" % (key, rep_index)
repeat_min_default = input.default if input.default > input.min else input.min
if (
not any(incoming_key.startswith(rep_prefix) for incoming_key in incoming.keys())
and rep_index >= input.min
and rep_index >= repeat_min_default
):
break
if rep_index < input.max:
Expand Down

0 comments on commit 1b89fa3

Please sign in to comment.