Skip to content

Commit

Permalink
Fix duplicate IDs in edit.html
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrini authored Dec 10, 2024
1 parent e97fcd0 commit e6cb911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openlibrary/templates/books/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ <h3 class="editFormBookAuthors">
</div>
</div>
</div>
<div id="hiddenIdentifiers"></div>
<div id="hiddenWorkIdentifiers"></div>
<div id="identifiers-display-works">
$ admin = str(ctx.user.is_admin() or ctx.user.is_super_librarian())
$:render_component('IdentifiersInput', attrs=dict(assigned_ids_string=work.get_identifiers().values(), output_selector='#hiddenIdentifiers', id_config_string=work_config, input_prefix='work--identifiers', admin=admin))
$:render_component('IdentifiersInput', attrs=dict(assigned_ids_string=work.get_identifiers().values(), output_selector='#hiddenWorkIdentifiers', id_config_string=work_config, input_prefix='work--identifiers', admin=admin))
</div>
</fieldset>
</div>
Expand Down

0 comments on commit e6cb911

Please sign in to comment.