Bug 42176: Can cancel add authorized value

The cancel add authorized value button has no type, so it will submit the form.
This patch makes it a button so it does not submit the form.

Test plan:
1.  Ensure that the CreateAVFromCataloguing preference is enabled.
2.  Edit an item.
3.  Enter an authorized value that does not exist (e.g. shelving location).
4.  Select it to be able to create it.
5.  Click the Cancel button to not create a new authorized value.
6.  Observe that the form was sent or that a new authorized value was created.
7.  Delete the new authorized value.
8.  Apply the patch.
9.  Repeat steps 2-5.
10. Observe that the form was not sent or that a new authorized value was not
    created.
11. Sign off.

Sponsored-by: Lund University Library
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Kevin Carnes 2026-03-25 15:37:07 +01:00 committed by Lucas Gass
parent e109e09ae4
commit c7ee854d9f
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@
<div class="modal-footer">
<input type="hidden" name="select2" value="" />
<button type="submit" class="btn btn-default">Save</button>
<button class="btn btn-default" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Cancel</button>
</div>
</form>
</div>