[Koha-bugs] [Bug 12995] script update_totalissues.pl stops on corrupted record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 25 15:35:12 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12995

--- Comment #1 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 31875
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31875&action=edit
Bug 12995 - script update_totalissues.pl stops on corrupted record

When running update_totalissues.pl cronjob, it will stop on a corrupted record.

This patch adds eval around record modification method call, alerts if error
and process next record.

Test plan :
- Create a dabase with a few biblios and some issues
- Modify first biblio record (use direct sql update) : set a wrong value in
biblioitems.marcxml
- Lauch script : misc/cronjobs/update_totalissues.pl --use-stats --commit=1000
-v
=> Without patch : the script stops at first record
=> With patch : the script prints error for first record and processes all
records

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list