mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Fixes #1339 - Ensure incident field names are the same everywhere
This commit is contained in:
parent
5ee7513ed6
commit
8cc807cfe5
@ -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.');
|
||||
|
Loading…
x
Reference in New Issue
Block a user