IPAM View do not display hidden custom fields
Detailed Description
The IPAM view shows all custom fields even if it's defined as hidden
Possible Implementation
--- a/services/web/apps/ip/ipam/views.py
+++ b/services/web/apps/ip/ipam/views.py
@@ -194,8 +196,9 @@ class IPAMApplication(ExtApplication):
#
# Add custom fields
for f in CustomField.table_fields("ip_prefix"):
- v = getattr(prefix, f.name)
- prefix_info += [(f.label, v if v is not None else "")]
+ if not f.is_hidden:
+ v = getattr(prefix, f.name)
+ prefix_info += [(f.label, v if v is not None else "")]
# Ranges
ranges = []
rs = []
./noc about
)
Paste NOC version (NOC version is: 20.1