mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +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
|
||||
AND v.aktiv = 1 AND v.ausprojekt = 0 AND v.modul != ''
|
||||
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->Paketmarke('TAB1', 'lieferschein', $id);
|
||||
$this->app->Tpl->Parse('PAGE',"tabview.tpl");
|
||||
|
Loading…
Reference in New Issue
Block a user