|
@@ -125,7 +125,16 @@ class ONUType extends AbstractType
|
|
|
$form->remove('trafficProfileOut');
|
|
|
$form->remove('trafficProfileIn');
|
|
|
$form->remove('vlanProfile');
|
|
|
- $form->remove('onuProfile');
|
|
|
+
|
|
|
+ // checking if the OLT is ZTE
|
|
|
+ // and removing onuProfile field if it's not
|
|
|
+ $olt = $onu->getOlt();
|
|
|
+ if ($olt && $olt->getModel()) {
|
|
|
+ $oltModel = $olt->getModel();
|
|
|
+ if (strpos($oltModel->getName(), 'ZTE') === false) {
|
|
|
+ $form->remove('onuProfile');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
}
|