Fixes #1339 - Ensure incident field names are the same everywhere

This commit is contained in:
agilmore 2016-01-06 14:20:48 +00:00
parent 5ee7513ed6
commit 8cc807cfe5

View File

@ -252,8 +252,8 @@ $(function() {
url: '/dashboard/api/incidents/templates',
success: function(tpl) {
var $form = $('form[role=form]');
$form.find('input[name=incident\\[name\\]]').val(tpl.name);
$form.find('textarea[name=incident\\[message\\]]').val(tpl.template);
$form.find('input[name=name]').val(tpl.name);
$form.find('textarea[name=message]').val(tpl.template);
},
error: function() {
(new Cachet.Notifier()).notify('There was an error finding that template.');