From 8cc807cfe5122bb035c4d638ce72a6cc66815057 Mon Sep 17 00:00:00 2001 From: agilmore Date: Wed, 6 Jan 2016 14:20:48 +0000 Subject: [PATCH] Fixes #1339 - Ensure incident field names are the same everywhere --- resources/assets/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index 7cf20b2a..5bc9c04d 100755 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -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.');