Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • N noc
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 440
    • Issues 440
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • noc
  • noc
  • Issues
  • #1299
Closed
Open
Issue created May 12, 2020 by Reinhard Sax@cc-saxr

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 = []

Paste NOC version (./noc about)

NOC version is: 20.1

Assignee
Assign to
Time tracking