improved logging
This commit is contained in:
@@ -156,6 +156,15 @@ class ConstructionConsentOwnerController extends mfBaseController
|
||||
$file->delete();
|
||||
}
|
||||
|
||||
$journal = ConstructionConsentJournal::create([
|
||||
"constructionconsent_id" => $consent->id,
|
||||
"text" =>
|
||||
$owner->company ?
|
||||
"Eigentümer $owner->company wurde gelöscht" :
|
||||
"Eigentümer $owner->firstname $owner->lastname wurde gelöscht"
|
||||
]);
|
||||
$journal->save();
|
||||
|
||||
$owner->delete();
|
||||
|
||||
$this->layout()->setFlash("Besitzer gelöscht!", "success");
|
||||
|
||||
Reference in New Issue
Block a user