0001-misc-fix-HTML-id-used-for-file-widgets-in-block-of-f.patch
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 |
- |