Explorar o código

16460 remove spaces from telephone dialing

Arthur Hanson hai 1 ano
pai
achega
207c91ef6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/utilities/tables.py

+ 1 - 1
netbox/utilities/tables.py

@@ -29,7 +29,7 @@ def linkify_phone(value):
     """
     if value is None:
         return None
-    return f"tel:{value}"
+    return f"tel:{value.replace(' ', '')}"
 
 
 def register_table_column(column, name, *tables):