]> git.koha-community.org Git - koha.git/commit
Bug 35659: (follow-up) Use new column name in cron script
authorAndreas Roussos <a.roussos@dataly.gr>
Wed, 18 Sep 2024 14:01:21 +0000 (14:01 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 28 Oct 2024 13:01:32 +0000 (14:01 +0100)
commit614392c6f0393554862378ecf4295448815d4e97
tree38c29ad00d7fa03515c13fde2e8d8641bce7343e
parentb2b54b835408e79ae4571c2949fcba89dd017f0b
Bug 35659: (follow-up) Use new column name in cron script

In an earlier patch, the `id` column of the `oai_servers`
table was renamed to `oai_server_id`. However, the code
in misc/cronjobs/harvest_oai.pl still uses the old column
name, which results in the following error:

$ misc/cronjobs/harvest_oai.pl --list
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Unknown column 'id' in 'order clause' at /kohadevbox/koha/Koha/Objects.pm line 403

This patch fixes that.

Test plan:

1) $ misc/cronjobs/harvest_oai.pl --list
   [...you get the DBI Exception...]
2) Apply the patch.
3) $ misc/cronjobs/harvest_oai.pl --list
   [...list of OAI repositories...]

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Sponsored-by: Association KohaLa - https://koha-fr.org/
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
misc/cronjobs/harvest_oai.pl