Coolswing Posted June 24, 2017 Share Posted June 24, 2017 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");byvar value = $(selector).val();Past it in you javascript console and your done. Link to comment Share on other sites More sharing options...
Administrators Netduma Fraser Posted June 25, 2017 Administrators Share Posted June 25, 2017 Hey, welcome to the forum! What did you do exactly? Try to set two devices to the same number? Link to comment Share on other sites More sharing options...
Coolswing Posted June 25, 2017 Author Share Posted June 25, 2017 No i just try to set more than 1 field,like Field1 => 2Filed2 => 3and 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 More sharing options...
Administrators Netduma Fraser Posted June 26, 2017 Administrators Share Posted June 26, 2017 Ah interesting, have to do 1 at a time and apply. Good bug thanks, won't be present in DumaOS. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.