Bugzilla – Attachment 59716 Details for
Bug 17944
Remove the sql code from itemtypes.pl administrative perl script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17955 - removed incorrect function call
Bug-17955---removed-incorrect-function-call.patch (text/plain), 877 bytes, created by
Alex Buckley
on 2017-02-01 04:29:21 UTC
(
hide
)
Description:
Bug 17955 - removed incorrect function call
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2017-02-01 04:29:21 UTC
Size:
877 bytes
patch
obsolete
>From 899b1f51d86ce88783ba1b08b1b246185dc442d0 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Wed, 1 Feb 2017 17:27:22 +1300 >Subject: [PATCH] Bug 17955 - removed incorrect function call > >https://bugs.koha-community.org/show_bug.cgi?id=17944 >--- > admin/itemtypes.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl >index 373a16c..fbda8fc 100755 >--- a/admin/itemtypes.pl >+++ b/admin/itemtypes.pl >@@ -151,7 +151,7 @@ if ( $op eq 'add_form' ) { > > } elsif ( $op eq 'delete_confirmed' ) { > >- my $itemtype = Koha::ItemType->get_items_and_biblioitems($itemtype_code); >+ my $itemtype = Koha::ItemTypes->find($itemtype_code); > my $deleted = eval { $itemtype->delete }; > if ( $@ or not $deleted ) { > push @messages, { type => 'error', code => 'error_on_delete' }; >-- >2.1.4
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 17944
:
59391
|
59564
|
59565
|
59655
|
59656
|
59657
|
59715
|
59716
|
59717
|
59718
|
59953
|
59954
|
62499
|
62500
|
62501
|
62502
|
62503
|
62504
|
62505
|
63045
|
63152
|
63220
|
63259
|
63307
|
63308
|
63309
|
63310
|
63924
|
63925