datatables-std.css für Standard DT erstellt
datatables-std.js für Standard DT erstellt zugewiesen an: Device,Devicetype,Devicemanufactor,Pop,Filestore Pop Detail Ansicht erstellt Filestore auf DT umgebaut Bugfixing: * Bearbeiten aus verschiedenen Ansichten werden nun richtig zurückgeleitet (Devices/Pops) * Sortierung Devicetype in Devices wurde nun per Arraysort durchgeführt
This commit is contained in:
@@ -35,13 +35,15 @@ class PopController extends mfBaseController
|
||||
$this->redirect("Pop");
|
||||
}
|
||||
|
||||
$device = new Device($id);
|
||||
if ($device->id != $id) {
|
||||
$pop = new Pop($id);
|
||||
if ($pop->id != $id) {
|
||||
$this->layout()->setFlash("Pop nicht gefunden", "error");
|
||||
$this->redirect("Pop");
|
||||
}
|
||||
|
||||
$this->layout()->setTemplate("Pop/Detail");
|
||||
$filter['pop_id'] = $id;
|
||||
$this->layout()->set("devices", DeviceModel::search($filter));
|
||||
$pops = PopModel::getOne($id);
|
||||
$this->layout()->set("pops", $pops);
|
||||
|
||||
@@ -130,11 +132,36 @@ class PopController extends mfBaseController
|
||||
return $this->addAction();
|
||||
}
|
||||
if ($this->request->returnto) {
|
||||
$this->returUrl = ucfirst($this->request->returnto);
|
||||
$returnAction = "Index";
|
||||
$returnVariables = array();
|
||||
$returnAnker = "";
|
||||
|
||||
|
||||
if (strpos($this->request->returnto, "-") !== false) {
|
||||
$urls = explode('-', $this->request->returnto);
|
||||
$urlCounter = 0;
|
||||
$returnUrl = "";
|
||||
foreach ($urls as $url) {
|
||||
if ($urlCounter > 0) {
|
||||
$returnUrl .= "/";
|
||||
}
|
||||
$returnUrl .= ucfirst($url);
|
||||
$urlCounter++;
|
||||
}
|
||||
$returnAction = "";
|
||||
$returnVariables['id'] = $id;
|
||||
$this->returUrl = $returnUrl;
|
||||
var_dump($returnUrl);
|
||||
} else {
|
||||
$this->returUrl = ucfirst($this->request->returnto);
|
||||
|
||||
}
|
||||
} else {
|
||||
$returnAnker = "view=pops&net=" . $pop->network_id;
|
||||
}
|
||||
|
||||
$this->layout()->setFlash("Pop erfolgreich gespeichert.", "success");
|
||||
$this->redirect($this->returUrl, "Index", [], "view=pops&net=" . $pop->network_id);
|
||||
$this->redirect($this->returUrl, $returnAction, $returnVariables, $returnAnker);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user