Added Prepatching
This commit is contained in:
@@ -323,6 +323,28 @@ class LineworkController extends mfBaseController {
|
||||
}
|
||||
}
|
||||
|
||||
//var_dump(strlen($termination->workflowitems['pop_id']->value->value_string));exit;
|
||||
|
||||
// set patching enabled for termination
|
||||
if(
|
||||
(strlen($termination->workflowitems['pop_id']->value->value_string) || strlen($termination->workflowitems['ist_pop_id']->value->value_string)) &&
|
||||
(strlen($termination->workflowitems['schrank']->value->value_string) || strlen($termination->workflowitems['ist_schrank']->value->value_string)) &&
|
||||
(strlen($termination->workflowitems['baugruppe']->value->value_string) || strlen($termination->workflowitems['ist_baugruppe']->value->value_string)) &&
|
||||
(strlen($termination->workflowitems['modul']->value->value_string) || strlen($termination->workflowitems['ist_modul']->value->value_string)) &&
|
||||
(strlen($termination->workflowitems['ports']->value->value_string) || strlen($termination->workflowitems['ist_ports']->value->value_string))
|
||||
) {
|
||||
$this->log->debug("Linework::save: All items needed for patching set");
|
||||
if($termination->patching_enabled != 1) {
|
||||
$termination->patching_enabled = 1;
|
||||
$termination->save();
|
||||
}
|
||||
} else {
|
||||
$this->log->debug("Linework::save: Not all items needed for patching set");
|
||||
if($termination->patching_enabled == 1) {
|
||||
$termination->patching_enabled = 0;
|
||||
$termination->save();
|
||||
}
|
||||
}
|
||||
|
||||
// file upload
|
||||
//var_dump($_FILES);exit;
|
||||
|
||||
Reference in New Issue
Block a user