redmine_knowledgebase icon indicating copy to clipboard operation
redmine_knowledgebase copied to clipboard

Macro errors in email updates

Open sphereweb83 opened this issue 5 years ago • 4 comments

Hello,

I use some of macros available for knowledgebase such ask {{category()}} and {{article()}}. While they work find in tickets, when i receive email updates about those tickets, i get the following errors:

Error executing the category macro (undefined method category_path' for #<#Class:0x00007fa18c089960:0x00007fa18c17e118> Did you mean? category_url)`

and

Error executing the article macro (undefined method article_path' for #<#Class:0x000055fd81fb5840:0x000055fd8136a568> Did you mean? article_url)`

Any ideas what causes this?

sphereweb83 avatar Jan 15 '20 00:01 sphereweb83

Hi~ I solved this issue. Just replace article_path to article_url in "redmine_knowledgebase\app\helpers\knowledgebase_helper.rb"

kingkins avatar Nov 11 '20 05:11 kingkins

hi @kingkins thanks for your comment but I do not find the article_path to replace with article_url. Could you please post the code snippet where this change needs to take place?

sphereweb83 avatar Nov 11 '20 12:11 sphereweb83

I think the file that the change needs to take place is knowledgebase_link_helper.rb

sphereweb83 avatar Nov 11 '20 13:11 sphereweb83

I think the file that the change needs to take place is knowledgebase_link_helper.rb

Maybe different knowledgebase version.

My path is "redmine_knowledgebase\app\helpers\knowledgebase_helper.rb" in latest version.

Anyway~ I think you solved this issue!

kingkins avatar Nov 17 '20 05:11 kingkins