Bug 42178: Fix close button for remove from bundle

The close button for remove from bundle has not type, so it submits the form.

This patch adds a button type.

Test plan:
1. Apply bug 42177 or add a local use preference for bundlesEnabled set to 1.
2. Edit a record.
3. Modify the leader so that it has a collection bibliographic level.
4. Ensure that is has at least one item.
5. Click Manage bundle next to the item.
6. Click Remove from bundle.
7. Click the Close button.
8. Observe that the form is submitted.
9. Apply the patch.
10. Repeat steps 5-7.
11. Observe that the form is not submitted.
12. Sign off.

Sponsored-by: Lund University Library
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
This commit is contained in:
Kevin Carnes 2026-03-25 16:28:19 +01:00 committed by Baptiste Wojtkowski
parent 592e871a65
commit aad1298cbd
No known key found for this signature in database
GPG Key ID: 47A8A13E10BC0D40
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Submit</button>
<button class="btn btn-default" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button>
</div>
</form>
</div>