瀏覽代碼

Changed ponSerialNumber to auth in action.

Maximiliano Schvindt 6 年之前
父節點
當前提交
4d32ec342d
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 2 2
      app/DoctrineMigrations/src/action.yml
  2. 5 1
      src/FTTHBundle/Entity/ONU.php

文件差異過大導致無法顯示
+ 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)
     {
-        $this->mac = strtolower($mac);
+        if(!empty($mac)) {
+            $this->mac = strtolower($mac);
+        } else {
+            $this->mac = null;
+        }
 
         return $this;
     }