소스 검색

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 년 전
부모
커밋
597f78fdc5
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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());