Actions
Bug #16717
closedinput_group_btn on New Host form generates copy of HTML in input field attributes
Description
On the New Host form, the Name field has an entire copy of the input_group_btn
randomise button HTML stored as an input_group_btn
attribute on the input field:
<div class="input-group"><input value="cobalt.example.com" input_group_btn="<a class="btn btn-default" title="»Generate new random name. Visit Settings to disable this feature.«" href="#" onclick="randomizeName(); return false;"><span class="glyphicon glyphicon-random "></span> </a>" class="form-control " focus_on_load="true" type="text" name="host[name]" id="host_name"><span class="input-group-btn"><a class="btn btn-default" title="" href="#" onclick="randomizeName(); return false;" data-original-title="»Generate new random name. Visit Settings to disable this feature.«"><span class="glyphicon glyphicon-random "></span> </a></span></div>
The option isn't being deleted from the options hash in the field
helper before being passed to the text field generator.
Actions