Various Bugfixes

This commit is contained in:
Frank Schubert
2021-10-07 19:54:28 +02:00
parent e27da7ec55
commit d150b4e7b5
8 changed files with 167 additions and 39 deletions
@@ -42,7 +42,6 @@ class TerminationController extends mfBaseController {
$data['contact'] = $r->contact;
$data['phone'] = $r->phone;
$data['email'] = $r->email;
$data['lineworker_id'] = $building->lineworker_id;
$data['edit_by'] = $this->me->id;
@@ -58,6 +57,7 @@ class TerminationController extends mfBaseController {
$this->layout()->setFlash("Fehler beim Speichern", "error");
$this->redirect("Building", "Index", [], "building=".$term->building_id);
}
if(!$term->code) {
$term->code = $term->getNewObjectCode();