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:
parent
d48a2f063f
commit
5cd7e48041
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue