Merge "Fix share group creation with share types" into stable/train

This commit is contained in:
Zuul 2021-06-23 07:13:32 +00:00 committed by Gerrit Code Review
commit a2d583dddf
1 changed files with 4 additions and 1 deletions

View File

@ -140,7 +140,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"),