Bug 36995: Correct parameter name for library EAN deletion

This patches removes the "cud-" prefix from the "delete_confirm"
parameter check in Library EAN management. The confirm step is a GET
operation.

To test, apply the patch and restart services;

- Go to Administration -> Library EANs.
- Add an entry if necessary, then click "Delete."
- You should be taken to a confirmation page: "Confirm deletion of
  EAN..."
- Confirm deletion and verify that the EAN was deleted.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Owen Leonard 2024-05-30 18:07:27 +00:00 committed by Martin Renvoize
parent 596d6b74ea
commit 900a1aecbb
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -54,7 +54,7 @@ if ( $op eq 'ean_form' ) {
ean => $e, ean => $e,
); );
} }
elsif ( $op eq 'cud-delete_confirm' ) { elsif ( $op eq 'delete_confirm' ) {
my $e = $schema->resultset('EdifactEan')->find($id); my $e = $schema->resultset('EdifactEan')->find($id);
$template->param( $template->param(
delete_confirm => 1, delete_confirm => 1,