From a950b8055e35c847f1d718722da0c384de17c5cd Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sat, 28 Apr 2012 19:47:34 -0400 Subject: [PATCH 1/3] Added issue number to filed status output closes #23 --- app/controllers/exceptionhandler_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/exceptionhandler_controller.rb b/app/controllers/exceptionhandler_controller.rb index b4c9260..4020787 100755 --- a/app/controllers/exceptionhandler_controller.rb +++ b/app/controllers/exceptionhandler_controller.rb @@ -48,7 +48,7 @@ class ExceptionhandlerController < ApplicationController issue = check_for_existing_report if issue != nil if update_report(issue) - flash.now[:notice] = "Updated report" + flash.now[:notice] = "Updated report: ##{issue.id}" end else @@ -57,7 +57,7 @@ class ExceptionhandlerController < ApplicationController issue = create_new_report if issue.valid? issue.save - flash.now[:notice] = "New report filed" + flash.now[:notice] = "New report filed: ##{issue.id}" else flash.now[:error] = issue.errors.full_messages end From d2d7d4c9bbe51a3bd0aacdcc8e0d2d49b220f88c Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 29 Apr 2012 00:01:04 -0400 Subject: [PATCH 2/3] Removed unnecessary call to value.save removing this call fixed the plugin's ability to update reports. This functionality must of been removed in redmine 1.4.x closes #24 --- app/helpers/exceptionhandler_helper.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/helpers/exceptionhandler_helper.rb b/app/helpers/exceptionhandler_helper.rb index f8e4289..ee270da 100755 --- a/app/helpers/exceptionhandler_helper.rb +++ b/app/helpers/exceptionhandler_helper.rb @@ -133,7 +133,6 @@ module ExceptionhandlerHelper when "Count" value.value = (value.value.to_i + 1).to_s end - value.save end issue.init_journal(User.anonymous, "Issue updated") return issue.save From 5b7d6aa7a7169df74d47a0ab107db1bbb0905788 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 29 Apr 2012 00:14:54 -0400 Subject: [PATCH 3/3] Updated README.rdoc to contain some install info --- README.rdoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rdoc b/README.rdoc index 32b0e04..41c58b6 100644 --- a/README.rdoc +++ b/README.rdoc @@ -4,3 +4,9 @@ This plugin allows the Exception Handler Library or any other client application When a new report is received, this plugin will automatically search for an existing report. If there is an existing report, it will be updated; if not, a new report will be filed. + += Installation + +clone into your plugin folder rake yourt database with the following command: + +rake db:migrate_plugins RAILS_ENV=production