fix(launch): WKS-Bestellstatus - fehlende Parameter bei commande()

CommandeFournisseur::commande() erwartet 3 Parameter ($user, $date, $methode),
es wurde aber nur $user übergeben → PHP Fatal Error auf Produktivserver.

Bump Version auf 3.2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eduard Wisch 2026-03-16 19:05:17 +01:00
parent f1e5a47674
commit 39f8a22f21
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ class modIdsconnect extends DolibarrModules
$this->editor_name = 'Alles Watt laeuft'; $this->editor_name = 'Alles Watt laeuft';
$this->editor_url = ''; $this->editor_url = '';
$this->version = '3.1'; $this->version = '3.2';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View file

@ -278,7 +278,7 @@ if ($action === 'WKS' && !empty($cart_lines) && $confirm_wks !== 'yes') {
// Bei WKS: Bestellstatus auf "Bestellt" setzen // Bei WKS: Bestellstatus auf "Bestellt" setzen
if ($action === 'WKS' && $fk_commande > 0 && isset($order) && $order->id > 0) { if ($action === 'WKS' && $fk_commande > 0 && isset($order) && $order->id > 0) {
if ($order->statut == CommandeFournisseur::STATUS_ACCEPTED) { if ($order->statut == CommandeFournisseur::STATUS_ACCEPTED) {
$order->commande($user); $order->commande($user, dol_now(), 0);
dol_syslog("IDS Connect: Bestellstatus auf 'Bestellt' gesetzt für Bestellung #".$order->id, LOG_INFO); dol_syslog("IDS Connect: Bestellstatus auf 'Bestellt' gesetzt für Bestellung #".$order->id, LOG_INFO);
} }
} }