Files
dolibarr/htdocs
DarmonNoah 08040ec30e 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:11:36 +01:00
..
2026-01-26 15:06:18 +01:00
2026-02-03 11:36:51 +01:00
2026-01-07 19:15:06 +01:00
2026-01-27 01:13:22 +01:00
2026-01-07 19:01:54 +01:00
2026-01-25 16:01:31 +01:00
2026-01-29 15:20:52 +01:00
2026-02-07 22:28:11 +01:00
2026-01-05 13:17:36 +01:00
2026-02-07 21:31:33 +01:00
2025-12-28 00:07:18 +01:00
2026-01-14 21:38:45 +01:00
2026-01-15 11:52:04 +01:00
2026-01-26 15:09:45 +01:00
CSS
2026-01-20 23:49:36 +01:00
2026-01-07 19:01:54 +01:00
2026-01-01 23:24:39 +01:00
2026-02-07 13:21:53 +01:00
2026-01-29 15:20:52 +01:00
2026-01-07 19:01:54 +01:00
2026-01-07 19:01:54 +01:00
2026-01-21 12:31:38 +01:00
css
2026-01-11 14:26:55 +01:00
2026-01-07 19:01:54 +01:00
2026-02-07 23:41:34 +01:00
2026-01-07 19:01:54 +01:00
2026-02-07 21:55:20 +01:00
2026-01-21 21:00:37 +01:00
2026-02-04 14:24:18 +01:00
css
2026-02-04 19:47:40 +01:00
2026-01-07 19:01:54 +01:00
2026-01-07 19:01:54 +01:00
2025-12-16 11:31:33 +01:00
2026-01-07 19:01:54 +01:00
2026-01-27 16:23:39 +01:00
2026-01-23 18:34:31 +01:00
2025-12-29 16:34:08 +01:00
2026-01-26 15:06:18 +01:00
2026-01-26 22:38:38 +01:00