Skip to content

Commit

Permalink
fix: update iter_choices to include additional parameter in SelectSUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 committed Nov 29, 2024
1 parent f5c8a8f commit fb103e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion invenio_oauth2server/theme/semantic/form_styling.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file is part of Invenio.
# Copyright (C) 2015-2020 CERN.
# Copyright (C) 2024 Graz University of Technology.
# Copyright (C) 2024 KTH Royal Institute of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -26,7 +27,7 @@ def __call__(self, field, **kwargs):
html.append('<i class="dropdown icon" aria-hidden="true"></i>')
items_html = []
default_text_html = []
for val, label, selected in field.iter_choices():
for val, label, selected, _ in field.iter_choices():
if selected:
default_text_html = [
'<div aria-atomic="true" aria-live="polite" class="text">{0}</div><div class="menu">'.format(
Expand Down

0 comments on commit fb103e6

Please sign in to comment.