Skip to content

Commit a807815

Browse files
authored
Bugfix disabled options in provider Link selection (#382)
Fixup for #306. Currently the wrong options were disabled in the selection box.
1 parent 1ff6cd5 commit a807815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scionlab/forms/attachment_conf_form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def __init__(self, attrs=None, choices=(), disabled_choices=()):
242242
def create_option(self, name, value, label, selected, index, subindex=None, attrs=None):
243243
option_dict = super()\
244244
.create_option(name, value, label, selected, index, subindex=subindex, attrs=attrs)
245-
if value in self.disabled_choices:
245+
if index in self.disabled_choices:
246246
option_dict['attrs']['disabled'] = 'disabled'
247247
return option_dict
248248

0 commit comments

Comments
 (0)