Revision 5081efd9
Added by Shimon Shtein almost 9 years ago
app/helpers/hosts_helper.rb | ||
---|---|---|
:class => "btn btn-default btn-xs pull-right", :title => _("Edit %s" % type) )
|
||
end
|
||
end
|
||
|
||
def inherited_by_default?(field, host)
|
||
return false unless host.hostgroup && host.hostgroup_id_was.nil?
|
||
return false if params[:action] == 'clone'
|
||
return true unless params[:host]
|
||
!params[:host][field]
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #11255 - Fixed inheritance checks for explicit input on host clone