Commit Graph

446 Commits

Author SHA1 Message Date
Laurent Destailleur
b1812b1080 Debug v22 2025-06-10 02:24:08 +02:00
ldestailleur
9cc83f44de Debug v22 2025-06-08 13:23:46 +02:00
ldestailleur
cc33eac316 Add method to update socket timeout 2025-04-22 16:57:49 +02:00
Frédéric FRANCE
beb0956d60 add image type in CMailFile.class.php (#33872) 2025-04-16 17:32:59 +02:00
ldestailleur
b84bc626d9 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-10 14:34:59 +02:00
ldestailleur
5e3313bf13 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-04-10 14:24:21 +02:00
ldestailleur
43716e856e Bad order of code 2025-04-05 19:09:40 +02:00
ldestailleur
6f9d1a50dd Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-03-27 13:43:22 +01:00
ldestailleur
72ed45b270 Add code to make SMTPs debug 2025-03-26 05:06:41 +01:00
MDW
c3104905b3 Qual: Fix phan notices (html/core) (#33474)
* FIX: Replace compromised tj-actions/changed-files

# FIX: Replace compromised tj-actions/changed-files

See https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised .

* Add changed php file for test

* Qual: Fix phan notices (html/core)

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-03-15 16:34:35 +01:00
ldestailleur
47d59c7938 NEW Add a test mode for AI setup 2025-02-16 22:45:14 +01:00
Laurent Destailleur (aka Eldy)
1cfa3b5803 Fix warning 2025-01-05 18:34:01 +01:00
Laurent Destailleur (aka Eldy)
629f94be71 Better error message 2024-12-06 15:33:29 +01:00
Laurent Destailleur
1386d8c388 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-11-19 04:21:29 +01:00
Laurent Destailleur
e9e1175134 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-19 04:04:10 +01:00
Laurent Destailleur
93b11038d5 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-11-19 03:44:50 +01:00
Marc de Lima Lucio
ce9a1b3661 FIX: swiftmailer: correctly set errors-to header (#31826) 2024-11-15 14:10:35 +01:00
Laurent Destailleur
9afbfaba28 Add option MAIN_MAIL_NO_RETURN_PATH_FOR_MODE_MAIL and return-path is
email without label.
2024-11-08 17:20:01 +01:00
Laurent Destailleur
8a2c861930 Code comment 2024-11-08 16:58:25 +01:00
UltraViolet33
c023c3b8c3 FIX attached files not sent in empty email (#31444)
When we send an email with empty text content but with attached file, the file was not sent.

Co-authored-by: Ulysse Valdenaire <uvaldenaire@easya.solutions>
2024-10-19 01:26:02 +02:00
Laurent Destailleur
c955ab06e7 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-03 01:07:09 +02:00
Laurent Destailleur
52616db1b7 Fix mutitenant MS oauth refresh 2024-10-03 01:06:44 +02:00
Laurent Destailleur
30c3ffa9dd Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-10-02 21:43:15 +02:00
Laurent Destailleur
50d2613124 Fix use of OAUTH for SMTP use with Microsoft 2024-10-02 21:25:21 +02:00
Laurent Destailleur
b32225283d Merge branch '20.0' of github.com:Dolibarr/dolibarr into develop 2024-09-25 22:32:36 +02:00
Frédéric FRANCE
4b4d629b71 fix phan for branch 20.0 (#31105)
* fix phan

* Update card.php

* Update card.php

* Update main.lang

* Update card.php

* Update card.php
2024-09-25 22:17:40 +02:00
Laurent Destailleur
cc95331fc6 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-09-23 22:09:24 +02:00
Laurent Destailleur
7b5c4b2e99 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-09-23 21:57:16 +02:00
Laurent Destailleur
c10e968600 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-09-23 21:52:08 +02:00
Laurent Destailleur
2f773e9326 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-09-23 21:45:03 +02:00
Laurent Destailleur
50fba3e99e Fix log level 2024-09-23 13:54:48 +02:00
HENRY Florian
61c5a61623 fix: better error reporting in CMailFile (#31058) 2024-09-20 17:46:52 +02:00
Frédéric FRANCE
80d1f47d4d fix ignored phpstan (most of expects string, int given) (#30649)
* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* fix ignored phpstan

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* more ignore

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan

* fix phpstan
2024-09-05 16:05:37 +02:00
Laurent Destailleur
e7cfa4ddcc Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-27 07:26:26 +02:00
Francis Appels
a8ddeff35c Fix some php warning (#30753)
* Fix php warning on send email

* Fix php warning on getTotalWeightVolume when no lines.

* Fix totalOrdered totalToShip should be int
2024-08-27 04:52:47 +02:00
MDW
d71cd352d5 Qual: Fix PhanUndeclaredMethod (#30661)
* Qual: Fix PhanUndeclaredMethod cases

* Fix PhanUndeclaredMethod cases

* Qual: Remove PhanUndeclaredMethod exceptions

* Fix spelling "disacard"

* Improve phpdoc, add abstract method to trait for typing

* Improve phpdoc typing for PHanUndeclaredMethod

* Suppress phan notices for guarded AliasNbPages calls

* Fix return value for printFile stub

* Fix getting message from Exception

* Define dummy getAllByProducts(), typing for it.

* Fix typo in comment

* Qual: Better typing for apiService (phan)

* Test that the Generic OAuth Service is provided

* Qual: Fix getSqlArrayForStats typing

* Force modTcpdfbarcode

* Correct typing hint

* Set ModelePDFAsset typehint

* Fix ModelePDFUserGroup typing hint

* Fix phan typing hints htdocs/core/modules/printing/printgcp.modules.php

* Fix write_file in ModelePDFStock*

* Update printsheet.php

* Adjust typing hint for barcode generator

* Update printsheet.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-19 02:05:27 +02:00
Laurent Destailleur
543f97f92e Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-15 15:24:20 +02:00
Laurent Destailleur
e5d3d8c7ed Add a log to help debug 2024-08-15 15:17:39 +02:00
MDW
3d04a7195c Qual: Updates regarding write_file(s) methods for Phan (#30511)
* Fix phpdoc for phpstan

* Add abstract write_file to ModelePDFContract

And update phpdoc for derived classes

* Fix typing for php_standard_actions writefile

* Improve phpdoc for write_files (& related)

* Add abstract write_file to ModelePDFBom

* Add abstract write_file to ModelePDFDeliveryOrder

* Add abstract write_file to ModeleExpenseReport

* Add abstract write_file to ModelePDFFicheinter

* Add abstract write_file to ModelePDFEvaluation

* Add abstract write_file to ModelePDFFactures

* Add abstract write_file to ModelePDFSuppliersInvoices

* Update ModelePDFProjects and ModelePDFTask related classes

* Qual: Add abstract write_file to ModelePdfExpedition

And update phpdoc for derived classes

* Qual: Correct reference (doc) to ModelePDFEvaluation

* Qual: Add abstract write_file to ModelePDFKnowledgeRecord

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFMo & ModelePDFMouvement

And update phpdoc for derived classes

* Qual: Set typehint to ModelePDFFicheinter

* Qual: Add abstract write_file to ModelePDFCommandes

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFPropales

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePdfReception

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFSuppliersOrders

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFSuppliersOrders

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFSuppliersPayments

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFSupplierProposal

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFWorkstation

And update phpdoc for derived classes

* Set typing for doc generator (commonobject)

* Improve typing for write_file

* Set typing for doc generator

* Qual: Add abstract write_file to ModelePDFMember

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFProduct

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFProductBatch

And update phpdoc for derived classes

* Qual: Add abstract write_file to ModelePDFRecruitmentJobPosition

And update phpdoc for derived classes

* Add abstract write_file to ModelePDFTicket

* Add abstract write_file to ModelePDFUser

* Add abstract write_file to ModelePDFUserGroup

* Add abstract write_file to ModeleThirdPartyDoc

* Add abstract write_file to ModelePDFAsset

* Find all incompatible classes

* Qual: update phan baseline

* Set typing for doc generator (commonobject)

* Qual: update phan baseline

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-14 19:21:10 +02:00
Laurent Destailleur
88253bf647 WIP Work on generic OAuth service 2024-08-13 18:36:33 +02:00
Laurent Destailleur
56d4a30bdf Code comment 2024-08-01 17:05:29 +02:00
Laurent Destailleur
cbc28b0afd Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2024-08-01 14:02:36 +02:00
Laurent Destailleur
483a30078d Try to avoid to reload token when not necessary. 2024-08-01 11:55:49 +02:00
Laurent Destailleur
66da3d7f9b Debug v20 - Fix use of oauth for alternative send email setup 2024-08-01 11:46:54 +02:00
Laurent Destailleur
efb8a9d4d3 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop 2024-08-01 11:36:38 +02:00
Laurent Destailleur
2efb14c767 Debug v20 - Fix use of oauth for alternative send email setup 2024-08-01 11:35:42 +02:00
MDW
63aab818e6 Qual: Fixes related to CMailFile for phan notices (#30510)
* Qual: Fix CMailFile related phan notices

# Qual: Fix CMailFile related phan notices

Fix several phan notices by typing and typing checks.

* Fix initialisation of CMailFile instantiation

* Update phan baseline

* Update mails_emailing.php

* Update mails_emailing.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-01 11:09:26 +02:00
Frédéric FRANCE
173dc1a70e fix constructor expects int (#30512)
* constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

* fix constructor expects int

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-08-01 10:52:53 +02:00
idayat-dev2a
a9d4a9bda0 Fix Wrong header Errors-To (#30470) 2024-07-25 17:55:52 +02:00
Laurent Destailleur
9af159cdd8 Replace "! empty($conf->global->$" with "getDolGlobalString($" 2024-07-03 20:05:29 +02:00