Added pop_id filter to Patching/Index
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user