Revision 4ca8b610
Added by yifat makias almost 3 years ago
app/views/compute_resources_vms/form/ovirt/_network.html.erb | ||
---|---|---|
:id, :name, {}, :label => _('Vnic Profile'), :label_size => "col-md-3", :disabled => !new_vm,
|
||
:class => "ovirt_network",
|
||
:onchange => 'tfm.computeResource.ovirt.vnicSelected(this)',
|
||
:data => {:profiles => compute_resource.vnic_profiles.to_json, :networks => networks } %>
|
||
:data => {:profiles => JSON.generate(compute_resource.vnic_profiles), :networks => JSON.generate(networks) } %>
|
||
<%= select_f f, :network, networks, :id, :name,
|
||
{ }, :disabled => !new_vm, :class => "ovirt_network",
|
||
:label => _('Network'), :label_size => "col-md-3"%>
|
Also available in: Unified diff
Fixes #32908 - Allow UTF character in vnic attributes
If vnic profile attributes contained UTF characters the to_json method
returned error. In order to support this passed the data by
JSON.generate instead.