Przeglądaj źródła

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 lat temu
rodzic
commit
597f78fdc5
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      src/FTTHBundle/EventListener/ONUSubscriber.php

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

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