Merge "Fix share group creation with share types"

This commit is contained in:
Zuul 2021-06-22 17:19:27 +00:00 committed by Gerrit Code Review
commit c20037c4b0
1 changed files with 4 additions and 1 deletions

View File

@ -139,7 +139,10 @@ class CreateShareGroupForm(forms.SelfHandlingForm):
[(st.id, st.name)
for st in share_types if st.id in sgt.share_types])
amount_of_choices = len(st_choices)
st_field_name = self.st_field_name_prefix + sgt.id
st_field_name = (
self.st_field_name_prefix +
utils.transform_dashed_name(sgt.id)
)
if amount_of_choices < 2:
st_field = forms.ChoiceField(
label=_("Share Types"),