Commit Graph

172 Commits

Author SHA1 Message Date
Laurent Destailleur
165242c0fb Move version info into a dedicated file 2025-10-22 12:16:09 +02:00
Frédéric FRANCE
2505c3755b clean code (#35367)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-17 18:18:16 +02:00
ldestailleur
c7407473c1 Fix try to work on multientity even if cron disable don entity 1. 2025-09-17 13:54:21 +02:00
ldestailleur
549cb48e8f Fix sort first on entity then on priority 2025-09-17 13:17:25 +02:00
Florian Mortgat
4f14d26b9f Reset the global $extrafields when a cron job needs to run in a different entity (#34130)
* Reset the global `$extrafields` when a cron job needs to run in a different entity than the previous one. If not, extrafield definitions won't be reloaded, causing potentially severe bugs

* FIX (phan) case of class ExtraFields

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-05-14 14:33:25 +02:00
ldestailleur
a0ec0002f6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-19 13:47:25 +01:00
ldestailleur
1698ac0958 FIX CR on script output 2025-03-18 17:41:16 +01:00
MDW
891e11d692 Qual: Enable and fix phan notices for scripts
# Qual: Enable and fix phan notices for scripts

phpstan is already enable on scripts, so there is no reason to not
enable phan.
This enables phan and fixes the notices at the same time
2025-02-18 16:33:41 +01:00
Maxime Kohlhaas
1dc3a9796f Merge branch '20.0' of github.com:Dolibarr/dolibarr into 21.0 2025-01-09 19:35:01 +01:00
Maxime Kohlhaas
751e21be44 Merge branch '20.0' of github.com:Dolibarr/dolibarr into 21.0 2025-01-09 18:23:38 +01:00
Maxime Kohlhaas
b754994543 Merge branch '19.0' of github.com:Dolibarr/dolibarr into 20.0 2025-01-09 18:18:36 +01:00
Maxime Kohlhaas
b32789f42a Merge branch '18.0' of github.com:Dolibarr/dolibarr into 19.0 2025-01-09 18:08:48 +01:00
Maxime Kohlhaas
e1a47ed0fb Merge branch '17.0' of github.com:Dolibarr/dolibarr into 18.0 2025-01-09 18:08:00 +01:00
Maxime Kohlhaas
6388f6e62a Merge branch '16.0' of github.com:Dolibarr/dolibarr into 17.0 2025-01-09 18:07:09 +01:00
Maxime Kohlhaas
e2605fbf64 Merge branch '15.0' of github.com:Dolibarr/dolibarr into 16.0 2025-01-09 18:05:33 +01:00
Maxime Kohlhaas
90c24b3d95 Merge branch '14.0' of https://github.com/Dolibarr/dolibarr into 15.0 2025-01-09 18:01:51 +01:00
Maxime Kohlhaas
273ec857a3 Fix : cron job user rights force reload 2025-01-07 18:39:19 +01:00
Laurent Destailleur
92aaf4e618 Debug v21 2024-11-25 04:02:31 +01:00
Frédéric FRANCE
9067c6deec replace deprecated (#31803)
* replace deprecated

* replace deprecated
2024-11-14 00:16:43 +01:00
Nicolas Domenech
c8dd1fbd72 New hook beforeRunCronJob and afterRunCronJob (#29884) 2024-11-13 23:21:33 +01:00
Frédéric FRANCE
1adc883b56 add baseline exclude for phpstan (#31632)
* add baseline exclude for phpstan

* update

* update

* update

* update

* update

* merge

* restore one filter

* delete old errors

* fix

* fix

* fix

* $moreforfilter can t be empty

* fix

* enable check

* refresh baseline

* add phpdoc

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00
Laurent Destailleur
40f2830714 Start to move function for CLI mode into a dedicated file 2024-10-04 12:10:25 +02:00
Laurent Destailleur
e8f84fc7a5 Fix option --force of cron command line tool. 2024-06-21 15:51:42 +02:00
Laurent Destailleur
335c5761f9 Fix add a protection to be able to process jobs not closed correctly. 2024-06-11 18:01:42 +02:00
Laurent Destailleur
948e88c0f1 Debug v20 2024-05-25 19:24:31 +02:00
Laurent Destailleur
5172f65c2e Fix log must use GMT date 2024-05-17 03:53:51 +02:00
Laurent Destailleur
3f23e94701 Better error message 2024-04-28 23:01:35 +02:00
Laurent Destailleur
3bafcf5d00 Fix CLI tools must return a positive value on error for better cross
platform compatibility
2024-03-04 19:41:21 +01:00
Laurent Destailleur
29927b1660 Fix warning 2023-12-26 14:49:38 +01:00
Laurent Destailleur
a136f304a6 Fix php8.2 warnings 2023-11-27 11:46:58 +01:00
Laurent Destailleur
fe9521b6b2 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-05-21 17:34:34 +02:00
Laurent Destailleur
aed895fcce Fix: missing carriage return into message 2023-05-21 16:37:36 +02:00
Laurent Destailleur
b55271dedb Fix warning 2023-04-15 03:27:35 +02:00
Laurent Destailleur
3090caccb4 Log 2023-03-22 22:14:01 +01:00
Laurent Destailleur
c62c7e3805 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	htdocs/accountancy/bookkeeping/balance.php
	htdocs/accountancy/bookkeeping/list.php
	htdocs/accountancy/bookkeeping/listbyaccount.php
	htdocs/accountancy/bookkeeping/listbysubaccount.php
2022-11-26 01:43:09 +01:00
Laurent Destailleur
b231bcb64a Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
Conflicts:
	htdocs/accountancy/bookkeeping/balance.php
	htdocs/accountancy/bookkeeping/list.php
	htdocs/accountancy/bookkeeping/listbyaccount.php
	htdocs/accountancy/bookkeeping/listbysubaccount.php
2022-11-26 01:21:51 +01:00
Laurent Destailleur
f42f083d10 Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into 15.0 2022-11-25 22:20:58 +01:00
Laurent Destailleur
41175b73ee NEW add option --force on CLI cron_run_jobs.php
This allow to execute cron even if date is not yeat reached
2022-10-29 12:57:14 +02:00
Laurent Destailleur
40d1833154 Prepare support of --force option on crons 2022-10-29 12:19:41 +02:00
kkhelifa
d25c16bf77 FIX: Fix the position of the verification condition of the test field in case of multi entities 2022-10-26 12:14:53 +02:00
Laurent Destailleur
66c27139e1 Fix php8 2022-07-25 19:21:14 +02:00
Laurent Destailleur
0aa69e534e Fix: Must add a context for cli execution of hooks 2022-06-14 15:07:01 +02:00
Laurent Destailleur
afd9787e99 Help debug cron 2022-06-03 11:52:39 +02:00
Laurent Destailleur
f8010dfcbc Merge branch '14.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts:
	ChangeLog
	htdocs/reception/list.php
	htdocs/takepos/pay.php
2021-10-16 13:01:03 +02:00
lvessiller
90be175c50 FIX load tranlate array after setting lang 2021-10-08 16:20:51 +02:00
lvessiller
1efc2eda69 FIX reload user lang 2021-10-08 11:54:38 +02:00
Laurent Destailleur
3fadd5cda5 NEW Add $dolibarr_main_db_readonly in conf.php for readonly access. 2021-07-09 19:37:12 +02:00
Frédéric FRANCE
63dad7f25c add new rule 2021-03-01 00:22:36 +01:00
daraelmin
58ae1aeb08 FIX #16285 warning undefine array key in cron_run_job.php 2021-02-15 20:38:59 +01:00
Scrutinizer Auto-Fixer
ab25e047c0 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2020-10-31 17:51:30 +00:00