Bug 39409: Duplicate modifybiblio ids in cat-toolbar

The biblio details page Edit menu has three different elements which all
have id="modifybibilio", two of which also have another id. Neither of those
things is allowed.

Test plan:
1. Without the patch, load the details view for any biblio record and View
   source
2. Search for id="modifybiblio"
3. You will get three results, the second and third shown with id in red
4. Apply patch, reload the page, View source and search again
5. You will get one result, without any red

Sponsored-by: Chetco Community Public Library

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Phil Ringnalda 2025-03-21 07:16:42 -07:00 committed by Katrin Fischer
parent 47647a687e
commit 8251e854d4
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@
<input type="hidden" name="op" value="cud-show" />
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
<input type="hidden" name="src" value="CATALOGUING" />
<button id="batchedit" type="submit" class="dropdown-item" id="modifybiblio">Edit items in a batch</button>
<button id="batchedit" type="submit" class="dropdown-item">Edit items in a batch</button>
</form>
</li>
[% ELSE %]
@ -89,7 +89,7 @@
<input type="hidden" name="del" value="1" />
<input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
<input type="hidden" name="src" value="CATALOGUING" />
<button id="batchdelete" type="submit" class="dropdown-item" id="modifybiblio">Delete items in a batch</button>
<button id="batchdelete" type="submit" class="dropdown-item">Delete items in a batch</button>
</form>
</li>
[% ELSE %]