From 5cd7e480413dbbe954ab9a6d7b8da72c1020cf60 Mon Sep 17 00:00:00 2001 From: data Date: Tue, 17 Mar 2026 14:31:28 +0100 Subject: [PATCH] fix: Pass notrigger=1 to updatePrice to prevent SMTP hang Dolibarr fires internal triggers on price changes which can attempt to send emails via SMTP. This causes the cronjob to hang indefinitely when the SMTP connection blocks. notrigger=1 skips these internal triggers since PreisBot sends its own notifications. Co-Authored-By: Claude Sonnet 4.6 --- class/preisbot.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/class/preisbot.class.php b/class/preisbot.class.php index 22c8122..d91d3f6 100755 --- a/class/preisbot.class.php +++ b/class/preisbot.class.php @@ -136,7 +136,8 @@ class PreisBot 0, array(), $product->default_vat_code, - 'Preisbot' + 'Preisbot', + 1 // notrigger=1: Keine internen Dolibarr-Trigger (verhindert SMTP-Hänger) ); if ($result > 0) {