Files
dolibarr/htdocs
DarmonNoah 7cd3abb9f8 Fixed Bug : email sending test #36741 (#37107)
Fixed Bug : email sending test #36741
@defrance 
-->
Issue fixed
The problem was caused by initializing $result = 0 in core/actions_sendmails.inc.php.
When sending a test email from Setup → Emails, there is no $object to fetch. As a result, $result remained 0 and the code incorrectly triggered ErrorFailedToReadObject.

The fix consists in explicitly setting $result = 1 when no $object is provided (test email / generic email context). This correctly treats the absence of an object as a valid case and restores the ability to send test emails, while keeping $result properly initialized.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-08 00:00:12 +01:00
..
2026-02-02 19:22:04 +01:00
2026-01-20 13:22:48 +01:00
2026-01-15 16:05:06 +01:00
Doc
2026-01-27 17:39:02 +01:00
2026-01-07 19:01:54 +01:00
CI
2026-02-01 19:04:53 +01:00
2026-02-07 21:31:33 +01:00
2026-01-15 11:52:04 +01:00
2026-01-24 18:00:45 +01:00
2026-02-07 23:53:07 +01:00
2026-01-07 19:01:54 +01:00
2026-01-30 14:22:56 +01:00
2026-02-01 19:07:15 +01:00
2026-01-20 23:25:27 +01:00
2026-01-30 14:22:56 +01:00
2026-02-03 18:16:05 +01:00
ci
2026-01-28 19:47:23 +01:00
2026-02-01 02:56:16 +01:00
2026-01-30 14:22:56 +01:00
2026-01-19 17:29:02 +01:00
2026-02-07 23:54:21 +01:00
2026-02-04 21:30:16 +01:00
2026-01-30 14:22:56 +01:00
2026-01-23 18:34:31 +01:00
2025-12-29 17:52:21 +01:00
CI
2026-01-28 18:55:29 +01:00
2026-01-29 11:25:33 +01:00