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

fix comparison of Symbol with Arel::Table failed exception when update wiki contents #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mahkhaled
Copy link

when I try to update a wiki content in redmine 2, it throws exception 
ArgumentError (comparison of Symbol with Arel::Table failed):
  lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb:438:in next_version'   lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb:432:inset_new_version'
  app/controllers/wiki_controller.rb:152:in `update'

This should use maximum not calculate :max

…e wiki contents

when I try to update a wiki content in redmine 2, it throws exception 
ArgumentError (comparison of Symbol with Arel::Table failed):
  lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb:438:in `next_version'
  lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb:432:in `set_new_version'
  app/controllers/wiki_controller.rb:152:in `update'

This should use maximum not calculate :max
@jleishman
Copy link

Have you shared this with the Redmine project?

@MischaTheEvil
Copy link

Have you shared this with the Redmine project?

At least someone did. See upstream issue #14773.

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