Cannot ddelete issues - Backlogs plugin issues ?

Added by Martin Buenger almost 8 years ago

Hi

When trying to delete an issue i receive the error message below.
I sent a bug report to redmine. Mischa the Evil told me that this is caused by backlog plugin and to post a message here. So here i am. Still unable to delete issues or even to delete projects. Can someone help me?

Thanks!
Martin

NoMethodError in IssuesController#destroy

Application Trace
vendor/rails/activerecord/lib/active_record/base.rb:1672:in `method_missing'
vendor/plugins/redmine_backlogs/lib/issue_patch.rb:28:in `remove_item'
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:173:in `evaluate_method'
vendor/rails/activesupport/lib/active_support/callbacks.rb:161:in `call'
vendor/rails/activesupport/lib/active_support/callbacks.rb:93:in `run'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `each'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `send'
vendor/rails/activesupport/lib/active_support/callbacks.rb:92:in `run'
vendor/rails/activesupport/lib/active_support/callbacks.rb:272:in `run_callbacks'
vendor/rails/activerecord/lib/active_record/callbacks.rb:298:in `callback'
vendor/rails/activerecord/lib/active_record/callbacks.rb:290:in `destroy_without_transactions'
vendor/rails/activerecord/lib/active_record/transactions.rb:102:in `destroy'
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:79:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:98:in `transaction'
vendor/rails/activerecord/lib/active_record/transactions.rb:102:in `destroy'
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:36:in `to_proc'
app/controllers/issues_controller.rb:318:in `each'
app/controllers/issues_controller.rb:318:in `destroy'

Running on windows XP pro, bitnami redmine stack 085

Replies (5)

RE: Cannot ddelete issues - Backlogs plugin issues ? - Added by Hans Kazan almost 8 years ago

Just to check if it's the plugin that is causing problems in your case:
1. Try to remove or move the backlogs plugin.
2. Do a stop/start of your webbrick/mongrel server

If you then can delete issues you should contact the developer of this plugin.

RE: Cannot ddelete issues - Backlogs plugin issues ? - Added by Martin Buenger almost 8 years ago

Thank you Hans

I removed the backlog plugin from my plugin directory, stopped/started my bitnami redmine stack service, created a new issue in Redmine and deleted it. It worked!
As you suggested i will inform the developer.

Kind regards Martin

RE: Cannot ddelete issues - Backlogs plugin issues ? - Added by Ezequiel G. B. almost 8 years ago

I'm experiencing the same problem since a couple of weeks ago1... please post a reply if you find a solution!

Thanks in advance,
Ezequiel.

[1] http://www.redmine.org/boards/2/topics/9412

RE: Cannot ddelete issues - Backlogs plugin issues ? - Added by Ricardo Amores over 7 years ago

I've found what it seems a solution for this issue.

The problem seems that the item for the backlog (a model created for the plugin) which is associated to an issue, is registered to be destroyed AFTER the issue, when it should be destroyed before the issue is attached to.

You need to edit the file:
REDMINE_PATH /vendor/plugins/redmine_backlogs/lib/issue_patch.rb

And change the line 13:

after_destroy :remove_item

with this
before_destroy :remove_item

Then restart the redmine server to apply the changes.

Hope it helps

(1-5/5)