Fix share group creation with share types
A recent change [1] introduced an encoding for problematic field names. On the share group creation form, an encoding was missed causing a silent failure where the share type/s chosen were ignored in the API request. [1]37e5b2f053
Change-Id: I0983359acc489513a5a0940ac379e0a078870548 Partial-Bug: #1931641 Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com> (cherry picked from commit803ab32358
) (cherry picked from commitf421aeb1e1
)
This commit is contained in:
parent
23b8ec9f23
commit
bf820e10c7
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue