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 <noreply@anthropic.com>
This commit is contained in:
Eduard Wisch 2026-03-17 14:31:28 +01:00
parent d48a2f063f
commit 5cd7e48041

View file

@ -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) {