Skip to content

Commit

Permalink
Fix required inputs error
Browse files Browse the repository at this point in the history
The input-parameter position is 0-indexed, not 1, causing false missing parameter messages when users defined Associated Scripts for a Group, despite specifying the parameter correctly.
  • Loading branch information
NeutraChikara committed Dec 17, 2024
1 parent 092f85e commit 97e1b2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def handle(self, *args, **options):
tag, created = ScriptTag.objects.get_or_create(name=script.tag)
db_script.tags.add(tag)

position = 1
position = 0
for parameter in script.parameters:
Input.objects.create(
script=db_script,
Expand Down

0 comments on commit 97e1b2c

Please sign in to comment.