Explorar el Código

Changed ponSerialNumber to auth in action.

Maximiliano Schvindt hace 6 años
padre
commit
4d32ec342d
Se han modificado 2 ficheros con 7 adiciones y 3 borrados
  1. 2 2
      app/DoctrineMigrations/src/action.yml
  2. 5 1
      src/FTTHBundle/Entity/ONU.php

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 2 - 2
app/DoctrineMigrations/src/action.yml


+ 5 - 1
src/FTTHBundle/Entity/ONU.php

@@ -355,7 +355,11 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
      */
      */
     public function setMac($mac)
     public function setMac($mac)
     {
     {
-        $this->mac = strtolower($mac);
+        if(!empty($mac)) {
+            $this->mac = strtolower($mac);
+        } else {
+            $this->mac = null;
+        }
 
 
         return $this;
         return $this;
     }
     }