Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Bug with pkg.php showing field values if field name contains underscore?

    Scheduled Pinned Locked Moved Development
    3 Posts 2 Posters 2.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      laleger
      last edited by

      Is it valid to use characters such as underscore or dash in field names? I've been having problems with getting pkg.php to display values for fields whose name contains an underscore. If I remove the underscore from the field name, it displays the values just fine. No problems viewing or changing values from pkg_edit.php for these fields. Thanks!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        There are quite a few packages that use _ in field names: unbound, varnish, squid, squidguard, etc.

        I don't see any current/active packages using - though.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • L
          laleger
          last edited by

          I shall do more testing. The underscores seem to work fine in my field names until I try to make those fields visible in my pkg.php views. If I take out the underscore, the same field shows fine.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.