Devices/Gerätetypen/Hersteller hinzugefügt
This commit is contained in:
@@ -83,7 +83,7 @@ class DeviceController extends mfBaseController
|
|||||||
$mode = "edit";
|
$mode = "edit";
|
||||||
$device = new Device($id);
|
$device = new Device($id);
|
||||||
if (!$device->id) {
|
if (!$device->id) {
|
||||||
$this->layout()->setFlash("Gerät nicht gefunden", "error");
|
$this->layout()->setFlash("Device nicht gefunden", "error");
|
||||||
$this->redirect("Device");
|
$this->redirect("Device");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -136,13 +136,13 @@ class DeviceController extends mfBaseController
|
|||||||
$id = $device->save();
|
$id = $device->save();
|
||||||
|
|
||||||
if (!$id) {
|
if (!$id) {
|
||||||
$this->layout()->setFlash("Gerät konnte nicht angelegt werden", "error");
|
$this->layout()->setFlash("Device konnte nicht angelegt werden", "error");
|
||||||
$this->redirect("Device");
|
$this->redirect("Device");
|
||||||
}
|
}
|
||||||
if ($mode == "edit") {
|
if ($mode == "edit") {
|
||||||
$this->layout()->setFlash("Geräte erfolgreich geändert", "success");
|
$this->layout()->setFlash("Device erfolgreich geändert", "success");
|
||||||
} else if ($mode = "add") {
|
} else if ($mode = "add") {
|
||||||
$this->layout()->setFlash("Geräte erfolgreich angelegt", "success");
|
$this->layout()->setFlash("Device erfolgreich angelegt", "success");
|
||||||
}
|
}
|
||||||
$this->redirect("Device");
|
$this->redirect("Device");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ class PopController extends mfBaseController
|
|||||||
$this->returUrl = ucfirst($this->request->returnto);
|
$this->returUrl = ucfirst($this->request->returnto);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->layout()->setFlash("Netzgebiet erfolgreich gespeichert.", "success");
|
$this->layout()->setFlash("Pop erfolgreich gespeichert.", "success");
|
||||||
$this->redirect($this->returUrl, "Index", [], "view=pops&net=" . $pop->network_id);
|
$this->redirect($this->returUrl, "Index", [], "view=pops&net=" . $pop->network_id);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user