Koha-clms/misc/cronjobs
Hayley Mapley 6a219c8080
Bug 20537: Added checks to remove warning from overdue_notices.pl
When executing overdue_notices.pl on borrowers that lack a surname, we
see this error:
Use of uninitialized value in concatenation (.) or string at
/usr/share/koha/bin/cronjobs/overdue_notices.pl line 575.

This patch fixes this issue by setting the $borr variable
based on the information that has been defined.

To test:
1) Create a borrower and set its surname to null
2) Checkout an item to the borrower and set it to be overdue
3) Navigate to kohaclone/misc/cronjobs and enter a koha-shell
4) Run the script: ./overdue_notices.pl
5) Observe the error appears
6) Apply the patch
7) Repeat steps 3-4
8) Observe the error is gone
9) Sign off!

Sponsored-by: Catalyst IT

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7d42e29c8b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-30 21:38:19 +01:00
..
holds Bug 21698: (QA follow-up) Fix typo verbosev -> verbose 2018-10-31 13:49:19 +00:00
rss Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
social_data
…
thirdparty Bug 21640: Enable output to STDOUT for Itiva outbound script 2018-11-02 10:33:08 +00:00
CONFIGURE.gmail
…
advance_notices.pl Bug 17969: Refactor the way <<items.content>> is generated 2017-08-30 15:06:25 -03:00
automatic_item_modification_by_age.pl
…
automatic_renewals.pl Bug 15494: Update display of renewal errors 2018-11-07 21:39:38 +00:00
backup.sh
…
batch_anonymise.pl Bug 16966: move parameters to hashref 2017-03-03 17:20:05 +00:00
build_browser_and_cloud.pl Bug 19040: Refactor GetMarcBiblio parameters 2017-08-25 10:23:42 -03:00
cart_to_shelf.pl
…
check-url-quick.pl Bug 21122: Fix check-url-quick when utf8 characters in URL's 2018-08-02 10:21:43 -03:00
check-url.pl Bug 19040: Refactor GetMarcBiblio parameters 2017-08-25 10:23:42 -03:00
cleanup_database.pl Bug 20402: only output if verbose flag is set 2018-05-09 12:47:43 -03:00
cloud-kw.pl
…
cloud-sample.conf
…
create_koc_db.pl
…
crontab.example Bug 21235: Remove table services_throttle 2018-09-07 15:09:39 +00:00
delete_expired_opac_registrations.pl Bug 16907: Koha::Patrons - Move DelMember to ->delete 2016-10-21 16:20:41 +00:00
delete_items.pl Bug 14504: (followup) Make deletion conditional on --commit 2016-08-26 12:07:27 +00:00
delete_patrons.pl Bug 20915: Use date --iso-8601 instead of date +%Y-%m-%d 2018-09-26 16:43:22 +00:00
delete_records_via_leader.pl Bug 19712: (follow-up) Add missing use Pod::Usage 2018-04-06 14:50:58 -03:00
edi_cron.pl Bug 17141: Call config method to retrieve logdir 2016-09-02 15:49:12 +00:00
fines.pl Bug 20727: (QA follow-up) Remove a few use statements again 2018-06-22 16:10:10 +00:00
gather_print_notices.pl Bug 21560: (follow-up) move use at the top 2019-03-19 09:36:51 +00:00
import_webservice_batch.pl
…
j2a.pl
…
longoverdue.pl Bug 19974: Make MarkLostItemsAsReturned multiple 2018-04-20 11:57:31 -03:00
membership_expiry.pl Bug 17762: Send lang to GetPreparedLetter 2017-05-09 20:56:41 +00:00
merge_authorities.pl Bug 9988: Refactor the cron script 2017-04-13 08:53:47 -04:00
notice_unprocessed_suggestions.pl Bug 19304: Move C4::Members::GetNoticeEmailAddress to Koha::Patron->notice_email_address 2018-01-02 11:46:40 -03:00
overdue_notices.pl Bug 20537: Added checks to remove warning from overdue_notices.pl 2019-05-30 21:38:19 +01:00
printoverdues.sh
…
process_message_queue.pl Bug 21322: process_message_queue.pl --type should take an argument 2018-10-03 17:34:43 +00:00
purge_suggestions.pl Bug 16280: purge_suggestions.pl: Cron job log should tell number of days used 2018-11-05 14:41:05 +00:00
reconcile_balances.pl Bug 21915: Add a cli script to reconcile balances 2019-01-10 16:18:59 +00:00
remove_temporary_edifiles.pl
…
runreport.pl Bug 22323: cronjob runreport.pl CSV add encoding 2019-02-25 15:32:04 +00:00
serialsUpdate.pl
…
share_usage_with_koha_community.pl Bug 18066: Hea V2 2017-03-23 00:10:46 +00:00
sitemap.pl Bug 16751: What is sitemaper? 2016-06-24 13:19:06 +00:00
staticfines.pl
…
stockrotation.pl Bug 21620: Prevent stockrotation cronjob failures 2018-11-02 10:33:00 +00:00
update_totalissues.pl
…