Added pop_id filter to Patching/Index

This commit is contained in:
Frank Schubert
2021-09-23 21:28:00 +02:00
parent 8a9e29087a
commit dd2d834c92
3 changed files with 28 additions and 9 deletions

View File

@@ -88,16 +88,12 @@ class PatchingController extends mfBaseController {
$this->layout()->set("terminations", $terms);
$this->layout()->set("pagination", $pagination);
//var_dump($pagination);exit;
/*
$terminations = PatchingModel::searchByTermination();
$terms = [];
foreach($terminations as $term) {
$terminations = [];
foreach($terms as $term) {
$term->order = OrderModel::getFirst(["termination_id" => $term->id]);
$terms[] = $term;
$terminations[] = $term;
//var_dump($term);
}
//exit;
*/
$this->layout()->set("terminations", $terms);
}
@@ -161,7 +157,7 @@ class PatchingController extends mfBaseController {
$patch_data["device_port"] = $r->device_port;
$patch_data["patched"] = ($r->patched == "1") ? 1 : 0;
if(strlen($patch_data["device_type"])) {
if(strlen($r->device_type)) {
$patch_data["device_type"] = $r->device_type;
} else {
$patch_data["device_type"] = null;