Projet

Général

Profil

0001-misc-fix-HTML-id-used-for-file-widgets-in-block-of-f.patch

Frédéric Péters, 21 octobre 2020 15:14

Télécharger (862 octets)

Voir les différences:

Subject: [PATCH] misc: fix HTML id used for file widgets in block of fields
 (#47925)

 wcs/qommon/form.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
wcs/qommon/form.py
209 209

  
210 210

  
211 211
def file_render_content(self):
212
    attrs = {'id': 'form_' + str(self.name).split('$')[0]}
212
    # remove trailing $file for identifier
213
    attrs = {'id': 'form_' + str(self.name).rsplit('$', 1)[0]}
213 214
    if self.required:
214 215
        attrs['aria-required'] = 'true'
215 216
    if self.attrs:
216
-