alexbevi / redmine_knowledgebase

A knowledgebase plugin for Redmine
452 stars 199 forks source link

Macro errors in email updates #370

Open sphereweb83 opened 4 years ago

sphereweb83 commented 4 years ago

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 methodcategory_path' for #<#:0x00007fa18c17e118> Did you mean? category_url)`

and

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

Any ideas what causes this?

kingkins commented 3 years ago

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

sphereweb83 commented 3 years ago

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 commented 3 years ago

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

kingkins commented 3 years ago

I think the file that the change needs to take place isknowledgebase_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!