Bugzilla – Attachment 56628 Details for
Bug 17411
Change exit 1 to exit 0 in acqui/basket.pl to prevent Internal Server Error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17411: Remove 3 other occurrences of exit 1
Bug-17411-Remove-3-other-occurrences-of-exit-1.patch (text/plain), 1.39 KB, created by
Jonathan Druart
on 2016-10-18 16:15:21 UTC
(
hide
)
Description:
Bug 17411: Remove 3 other occurrences of exit 1
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-10-18 16:15:21 UTC
Size:
1.39 KB
patch
obsolete
>From 11910cdd6a838aa8a72d753deaf30efd99495afe Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 18 Oct 2016 17:14:58 +0100 >Subject: [PATCH] Bug 17411: Remove 3 other occurrences of exit 1 > >--- > C4/Items.pm | 2 -- > tools/quotes/quotes_ajax.pl | 2 +- > 2 files changed, 1 insertion(+), 3 deletions(-) > >diff --git a/C4/Items.pm b/C4/Items.pm >index 7c5dfe6..7e1b4f1 100644 >--- a/C4/Items.pm >+++ b/C4/Items.pm >@@ -869,7 +869,6 @@ sub GetItemStatus { > $itemstatus{$authorisedvalue} = $lib; > } > return \%itemstatus; >- exit 1; > } > else { > >@@ -955,7 +954,6 @@ sub GetItemLocation { > $itemlocation{$authorisedvalue} = $lib; > } > return \%itemlocation; >- exit 1; > } > else { > >diff --git a/tools/quotes/quotes_ajax.pl b/tools/quotes/quotes_ajax.pl >index c4bbae3..9948313 100755 >--- a/tools/quotes/quotes_ajax.pl >+++ b/tools/quotes/quotes_ajax.pl >@@ -50,7 +50,7 @@ if ($action eq 'add') { > $sth->execute($params->{'source'}, $params->{'text'}); > if ($sth->err) { > warn sprintf('Database returned the following error: %s', $sth->errstr); >- exit 1; >+ exit 0; > } > my $new_quote_id = $dbh->{q{mysql_insertid}}; # ALERT: mysqlism here > $sth = $dbh->prepare('SELECT * FROM quotes WHERE id = ?;'); >-- >2.8.1
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 17411
:
56076
|
56121
|
56627
| 56628