mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-22 08:43:16 +01:00
* FIX|Fix Cron job lastoutput overflow Clamp cronjob.lastoutput to MAXIMUM_LENGTH_FOR_LASTOUTPUT_FIELD in create/update to avoid SQL errors when output exceeds DB TEXT size. Also harden run_jobs(): - jobtype=function: report lib/lang load failures into lastoutput/lastresult and parse params more reliably (comma + trim, supports "0"). - jobtype=command: mark run as failed when CLI is disabled, fall back to sys_get_temp_dir(), and report an explicit error if no temp dir can be resolved. Signed-off-by: Camino Travel Center <noreply@caminotravelcenter.com> * Update cronjob.class.php --------- Signed-off-by: Camino Travel Center <noreply@caminotravelcenter.com> Co-authored-by: Camino Travel Center <noreply@caminotravelcenter.com> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>