Dashlets: Possible Bug In GETCONFIGHTML with Radio Input

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Dashlets: Possible Bug In GETCONFIGHTML with Radio Input

Post by Box293 »

I've been working on a Dashlet recently and have had some issues with Radio buttons. I might be making a programming mistake so I've created a Demo Dashlet that demonstrates the issue I am having.
demo.zip
Just upload this via the Manage Dashlets section.

It seems that it doesn't matter what radio button I select when in DASHLET_MODE_GETCONFIGHTML, it always seems to store the value of the last radio button in that radio button group.

For example:
  • In the Available Dashlets section click the icon for the Demo Dashlet
    The Add To Dashboard window appears
    Select Home Page from the drop down list
    If you click any of the radio buttons it will tell you the value of that radio button
    Select radio_one Value A
    Select radio_two Value C
    Click the Add It button
    Now go to the Home Page
    You will see the Dashlet that is reporting the values of radio_one and radio_two
    Notice that the value for radio_one is B (I selected value A)
    Notice that the value for radio_two is D (I selected value C)
Any ideas as to what is happening here?

Nagios XI 2011R2.4 VM running on ESXi 5 Update 1.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked