Project

General

Profile

Actions

Bug #16717

closed

input_group_btn on New Host form generates copy of HTML in input field attributes

Added by Dominic Cleal over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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=&quot;btn btn-default&quot; title=&quot;»Generate new random name. Visit Settings to disable this feature.«&quot; href=&quot;#&quot; onclick=&quot;randomizeName(); return false;&quot;><span class=&quot;glyphicon glyphicon-random &quot;></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 #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3897 added
Actions #2

Updated by Dominic Cleal over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #3

Updated by Dominic Cleal over 7 years ago

  • translation missing: en.field_release set to 189
Actions

Also available in: Atom PDF