Devices/Gerätetypen/Hersteller hinzugefügt
This commit is contained in:
@@ -83,7 +83,7 @@ class DeviceController extends mfBaseController
|
||||
$mode = "edit";
|
||||
$device = new Device($id);
|
||||
if (!$device->id) {
|
||||
$this->layout()->setFlash("Gerät nicht gefunden", "error");
|
||||
$this->layout()->setFlash("Device nicht gefunden", "error");
|
||||
$this->redirect("Device");
|
||||
}
|
||||
} else {
|
||||
@@ -136,13 +136,13 @@ class DeviceController extends mfBaseController
|
||||
$id = $device->save();
|
||||
|
||||
if (!$id) {
|
||||
$this->layout()->setFlash("Gerät konnte nicht angelegt werden", "error");
|
||||
$this->layout()->setFlash("Device konnte nicht angelegt werden", "error");
|
||||
$this->redirect("Device");
|
||||
}
|
||||
if ($mode == "edit") {
|
||||
$this->layout()->setFlash("Geräte erfolgreich geändert", "success");
|
||||
$this->layout()->setFlash("Device erfolgreich geändert", "success");
|
||||
} else if ($mode = "add") {
|
||||
$this->layout()->setFlash("Geräte erfolgreich angelegt", "success");
|
||||
$this->layout()->setFlash("Device erfolgreich angelegt", "success");
|
||||
}
|
||||
$this->redirect("Device");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user