alphanodes / additional_tags

Redmine Plugin for adding tags functionality to issues and wiki pages.
https://www.redmine.org/plugins/additional_tags
GNU General Public License v2.0
64 stars 26 forks source link

Internal error #28

Closed Interfud closed 2 years ago

Interfud commented 2 years ago

After the update Error when copying a task Redmine version 5.0.1.stable Ruby version 3.1.2-p20 (2022-04-12) [x86_64-linux] Rails version 6.1.6

[4b70ab9c-e250-47e3-b379-e0a115d52e35] plugins/additional_tags/lib/additional_tags/patches/issue_patch.rb:77:in copy_from_with_tags' [4b70ab9c-e250-47e3-b379-e0a115d52e35] plugins/issue_recurring/lib/issue_recurring/issue_patch.rb:5:incopy_from'

Interfud commented 2 years ago

a nonexistent method is called!!! 77 copy_from_without_tags arg, **options

alexandermeindl commented 2 years ago

Hi @Interfud,

I cannot confirm this problem with the latest version of additional_tags. Which version do you use? Do you use other plugins? If yes, you should try to isolate the problem with removing other plugins.

Interfud commented 2 years ago

Broke after the update. Update "additionals" and "additional_tags"

Interfud commented 2 years ago

Broke the plugin https://github.com/cryptogopher/issue_recurring

alexandermeindl commented 2 years ago

Read this: https://github.com/AlphaNodes/additional_tags/issues/9#issuecomment-778642718 - additional_tags is using alias_method, this is not compatible with issue_recurring. additional_tags did not change anything about this, I suppose you add issue_recurring plugin or issue_recurring switched to prepend. Remove issue_recurring and it should work, again.

Interfud commented 2 years ago

Thanks. Deleted everything works.

cryptogopher commented 1 year ago

For reference, there is a patch for https://github.com/cryptogopher/issue_recurring which allows it to be run with plugins using alias_method.

You just need to replace 1 file in your plugin directory with this one: https://github.com/cryptogopher/issue_recurring/blob/issue30/lib/issue_recurring/issue_patch.rb

It probably won't be actively updated and is a temporary workaround until other plugins will finaly upgrade to using prepend + super.