Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backlogs_activerecord_mixin.rb causes an error #1144

Open
Shin811 opened this issue Mar 7, 2017 · 4 comments
Open

backlogs_activerecord_mixin.rb causes an error #1144

Shin811 opened this issue Mar 7, 2017 · 4 comments

Comments

@Shin811
Copy link

Shin811 commented Mar 7, 2017

Hi,

When you change the ticket, the following error occurs.

ActiveRecord::StatementInvalid (Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where id = 566' at line 1: update issues set position = where id = 566):
plugins/redmine_backlogs/lib/backlogs_activerecord_mixin.rb:170:in list_commit' plugins/redmine_backlogs/lib/backlogs_activerecord_mixin.rb:83:in move_to_top'
plugins/redmine_backlogs/lib/backlogs_issue_patch.rb:134:in backlogs_before_save' app/models/issue.rb:182:in create_or_update'
app/controllers/issues_controller.rb:487:in block in save_issue_with_child_records' app/controllers/issues_controller.rb:475:in save_issue_with_child_records'
app/controllers/issues_controller.rb:180:in update' lib/redmine/sudo_mode.rb:63:in sudo_mode'`

Commenting out list_commit in the 83 line of backlogs_activerecord_mixin.rb to try it worked normally.
Can you tell me what is going on?
My environment is as follows.

Best regards

Environment:
Redmine version 3.2.1.stable
Ruby version 2.1.8-p440 (2015-12-16) [i386-mingw32]
Rails version 4.2.5.2
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.11
Git 2.7.4
Filesystem
Redmine plugins:
alm 1.0.5
clipboard_image_paste 1.10
lad 1.4.1
lgc 3.2.0
lgc_pro 3.2.0
redmine_agile 1.4.2
redmine_backlogs v1.0.6
redmine_banner 0.1.2
redmine_checklists 3.1.5
redmine_issue_completion 0.0.2
redmine_issue_templates 0.1.4
redmine_wiki_extensions 0.7.0
redmine_work_days 1.1.0
redmine_work_time 0.3.4
sidebar_hide 0.0.8'

@wmlynar
Copy link

wmlynar commented May 4, 2017

would you mind checking if that is a conflict with redmine_agile plugin by temporary moving it to other directory and trying again?

@rabbl
Copy link

rabbl commented May 23, 2017

I had the same error.
Unistallung the redmine_agile plugin helped.

@mtolava
Copy link

mtolava commented Nov 22, 2019

I had the same error.
I need to use redmine_agile plugin. There are no alternative to fix this problem?

@sebint
Copy link

sebint commented Dec 21, 2023

I had the same error. I need to use redmine_agile plugin. There are no alternative to fix this problem?

Have you resolved your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants