Jump to content
Reminder, starting today you will no longer be able to login to the forum using your display name, to login you must now use your email address. ×

bug on DHCP lease settings [1.03.6h]


Recommended Posts

Hi everyone,

I found a bug on the DHCP lease setting that invalid the process of setting registration.
I don't know if everybody got this error but on chome i couldn't not validate the form and i was getting the error:  "You have duplicate host numbers, please change".
I got this error because all my filed was empty (i've never configured it before) and i tried to update more than 1 change.

This issues seams to be cause of the javascript function named validate who check if the form contains duplicated values and interrupt the submit with this error if it does.
But the way the function get the Fields's values seems to be the wrong method:

 

 

var value = $(selector).attr("value");

 Here it try to get the value from the "value" attribut that's set when the form is generate. But when you didn't configure DHCP before the value is just empty and even if the field get fill the value attribute didn't change.

So if you try to update 2 field the too "value" attributes contain an empty string "" so the validate function return false end block the form's submit.

The correct way is to use the getter .val().


So if you want to configure DHCP for the first time just do your changes one by one.

OR open your browser html inspector, find the validate() function and copie it, replace the line 12:

var value = $(selector).attr("value");

by


var value = $(selector).val();

Past it in you javascript console and your done.

 

Link to comment
Share on other sites

No i just try to set more than 1 field,
like 
Field1 => 2
Filed2 => 3

and i got the error "You have duplicate host numbers, please change". So i check the javascript and found that the valide function is incorrect

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...