Devices:
OLT ONT Implementation Devices Snmp Version Devicetypes: Olt Flag
This commit is contained in:
@@ -81,11 +81,17 @@ class DevicetypeController extends mfBaseController
|
||||
$power = $r->power;
|
||||
}
|
||||
|
||||
|
||||
if ($r->olt) {
|
||||
$olt = "1";
|
||||
}
|
||||
|
||||
$data = [];
|
||||
$data['name'] = trim($r->name);
|
||||
$data['devicemanufactor_id'] = $r->devicemanufactor_id;
|
||||
$data['price'] = $price;
|
||||
$data['power'] = $power;
|
||||
$data['olt'] = $olt;
|
||||
|
||||
if (!$data['name']) {
|
||||
$this->layout()->setFlash("Name darf nicht leer sein", "error");
|
||||
|
||||
Reference in New Issue
Block a user