mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 06:41:14 +01:00
Lieferschein/Paketmarke: Check for valid options before loadVersandModul
This commit is contained in:
parent
ef8b79ff19
commit
9defde81ae
@ -459,6 +459,10 @@ class Lieferschein extends GenLieferschein
|
|||||||
WHERE l.id=$id
|
WHERE l.id=$id
|
||||||
AND v.aktiv = 1 AND v.ausprojekt = 0 AND v.modul != ''
|
AND v.aktiv = 1 AND v.ausprojekt = 0 AND v.modul != ''
|
||||||
ORDER BY v.projekt DESC LIMIT 1");
|
ORDER BY v.projekt DESC LIMIT 1");
|
||||||
|
if (empty($result['modul']) || empty($result['id'])) {
|
||||||
|
$this->app->Tpl->addMessage('error', 'Bitte zuerst eine gültige Versandart auswählen', false, 'PAGE');
|
||||||
|
return;
|
||||||
|
}
|
||||||
$versandmodul = $this->app->erp->LoadVersandModul($result['modul'], $result['id']);
|
$versandmodul = $this->app->erp->LoadVersandModul($result['modul'], $result['id']);
|
||||||
$versandmodul->Paketmarke('TAB1', 'lieferschein', $id);
|
$versandmodul->Paketmarke('TAB1', 'lieferschein', $id);
|
||||||
$this->app->Tpl->Parse('PAGE',"tabview.tpl");
|
$this->app->Tpl->Parse('PAGE',"tabview.tpl");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user