Bugzilla – Attachment 129168 Details for
Bug 29790
Deleting serial items fail without warning
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29790: Restore warning if deletion of serial item fails
Bug-29790-Restore-warning-if-deletion-of-serial-it.patch (text/plain), 1.67 KB, created by
Kyle M Hall (khall)
on 2022-01-07 14:08:26 UTC
(
hide
)
Description:
Bug 29790: Restore warning if deletion of serial item fails
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-01-07 14:08:26 UTC
Size:
1.67 KB
patch
obsolete
>From c7056af5dec8fcab2ed911357423e4ee54c22d3d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 4 Jan 2022 15:59:15 +0100 >Subject: [PATCH] Bug 29790: Restore warning if deletion of serial item fails > >If the deletion of a serial item failed, the UI did not provide a warning/error message. > >Test plan: >0. Create a new subscription with "Create an item record when receiving >this serial" >1. Receive a new item, set a barcode >2. Check it out >3. Select the item you have received in the serial item list (page >"Serial collection information") and click "Delete selected issues" >4. Tick "Delete the associated items" and confirm the deletion >=> Without this patch the deletion fail but the UI does not warn it >=> With this patch applied you see a warning "one or more associated >items could not be deleted at this time." > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > serials/serials-collection.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/serials/serials-collection.pl b/serials/serials-collection.pl >index 963eeeb577e..2179b830699 100755 >--- a/serials/serials-collection.pl >+++ b/serials/serials-collection.pl >@@ -123,9 +123,9 @@ if($op eq 'delete_confirm'){ > } > my $items = Koha::Items->search({ itemnumber => \@itemnumbers }); > while ( my $item = $items->next ) { >- my $error = $item->safe_delete; >+ my $deleted = $item->safe_delete; > $template->param(error_delitem => 1) >- if $error eq '1'; >+ unless $deleted; > } > } > for my $serialid (@serialsid){ >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29790
:
128992
|
129006
| 129168