|
@@ -75,7 +75,7 @@ class HostStatusChangeSubscriber implements EventSubscriber
|
|
|
|
|
|
if ($entity instanceof Host && (isset($changeset['state']) || isset($changeset['hostType']))) {
|
|
if ($entity instanceof Host && (isset($changeset['state']) || isset($changeset['hostType']))) {
|
|
// setting fixed address to null
|
|
// setting fixed address to null
|
|
- if ($updateFixedAddress == true && $entity->getFixedAddress() != '') {
|
|
|
|
|
|
+ if ($updateFixedAddress == true) {
|
|
$entity->setFixedAddress(null);
|
|
$entity->setFixedAddress(null);
|
|
$entity->setIpv4Address(null);
|
|
$entity->setIpv4Address(null);
|
|
$entity->setFixedIP(false);
|
|
$entity->setFixedIP(false);
|