biblibre / koha-plugin-patron-import

koha-plugin-patron-import
1 stars 1 forks source link

Change of system preference BorrowersLog appears in action_logs with interface OPAC #3

Open fridobox opened 2 years ago

fridobox commented 2 years ago

https://github.com/biblibre/koha-plugin-patron-import/blob/b3961fc39acf8d6f3743fece44bfdba2b0d9e086/Koha/Plugin/Com/Biblibre/PatronImport.pm#L552

When comming from a cron, it should set C4::Context interface 'cron'.

Maybe use like in Koha cronjobs :

use Koha::Script -cron;
fridobox commented 2 months ago

One should use syspref override in ENV

Like Harvester: https://git.biblibre.com/biblibre/abesbnf/src/commit/ea308e260562843d449d4ebddab8bc59562c513f/vendangeur/src/vendangeur.pl#L73