Browse Source

Merge branch 'bugfix-onu-add' into 'master'

Fixed the problem when insert a new ONU in Flowdat3

See merge request interlink-sa/flowdat3/modules/ftth!172
Jean Sumara Leopoldo 5 years ago
parent
commit
597f78fdc5
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/FTTHBundle/EventListener/ONUSubscriber.php

+ 1 - 3
src/FTTHBundle/EventListener/ONUSubscriber.php

@@ -87,9 +87,7 @@ class ONUSubscriber implements EventSubscriber
         try{
             $entity = $args->getEntity();
             if($entity instanceof ONU){
-                if(isset($args->getEntityChangeSet()['clientId']) && $args->getOldValue('clientId') != $entity->getClientId()){
-                    $this->setStateOnu($entity);
-                }
+                $this->setStateOnu($entity);
             }
         }catch(Exception $ex){
             ExceptionFactory::make($ex->getMessage());