Bugzilla – Attachment 165039 Details for
Bug 36473
updatetotalissues.pl should not die on a bad record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36473: [ALTERNATIVE PATCH] Prevent UpdateTotalIssues failure to crash update_totalissues.pl
Bug-36473-Prevent-UpdateTotalIssues-failure-to-cra.patch (text/plain), 1.27 KB, created by
Jonathan Druart
on 2024-04-18 07:32:46 UTC
(
hide
)
Description:
Bug 36473: [ALTERNATIVE PATCH] Prevent UpdateTotalIssues failure to crash update_totalissues.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-04-18 07:32:46 UTC
Size:
1.27 KB
patch
obsolete
>From 760d0d8aa0a16a0d74188ec2a3424c5f8380ddf1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 18 Apr 2024 09:32:27 +0200 >Subject: [PATCH] Bug 36473: Prevent UpdateTotalIssues failure to crash > update_totalissues.pl > >--- > misc/cronjobs/update_totalissues.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/misc/cronjobs/update_totalissues.pl b/misc/cronjobs/update_totalissues.pl >index eee8fdef62c..1daa32ed940 100755 >--- a/misc/cronjobs/update_totalissues.pl >+++ b/misc/cronjobs/update_totalissues.pl >@@ -168,12 +168,12 @@ sub process_query { > if ( not $test_only ) { > my $ret; > if ( $incremental && $totalissues > 0 ) { >- $ret = UpdateTotalIssues( $biblionumber, $totalissues ); >+ $ret = eval { UpdateTotalIssues( $biblionumber, $totalissues ) }; > } > else { >- $ret = UpdateTotalIssues( $biblionumber, 0, $totalissues ); >+ $ret = eval { UpdateTotalIssues( $biblionumber, 0, $totalissues ) }; > } >- unless ($ret) { >+ if ($@ || !$ret) { > print "Error while processing bib $biblionumber\n" if $verbose; > $num_bibs_error++; > } >-- >2.34.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 36473
:
164192
|
164247
|
164269
|
164270
|
164271
|
164289
|
164290
|
164458
|
164459
|
164805
|
164806
|
165039
|
165077
|
165078
|
165079