You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::ARCondition) on line #4 of vendor/plugins/redmine_mypageparts_collection/app/views/my/blocks/_custom_query_report.rhtml:
1: <%
2: unless @sidebar_queries
3: # User can see public queries and his own queries
4: visible = ARCondition.new(["is_public = ? OR user_id = ?", true, (@user.logged? ? @user.id : 0)])
5: # Project specific queries and global queries
6: projects=Project.visible.find(:all)
7: project_ids=Array.new
vendor/plugins/redmine_mypageparts_collection/app/views/my/blocks/_custom_query_report.rhtml:4:in `_run_rhtml_vendor47plugins47redmine_mypageparts_collection47app47views47my47blocks47_custom_query_report46rhtml_locals_custom_query_report_object_user'
app/views/my/_block.html.erb:12
app/views/my/page_layout.html.erb:60:in `block in _run_erb_app47views47my47page_layout46html46erb'
app/views/my/page_layout.html.erb:58:in `each'
app/views/my/page_layout.html.erb:58
<internal:prelude>:10:in `synchronize'
Activity
drakontiaon Apr 25, 2012
今のところ、エラーは検知されていない。
mypageparts_collection,spend_time_columnを有効化(fixed #20,#23)。
mikoto20000 commentedon Apr 27, 2012
下記のようなエラーが発生し、mypageが見れなくなる(カスタムレポートをマイページに追加時?)
drakontia commentedon Apr 28, 2012
カスタムクエリレポートのところでした。
ARConditionクラスは1.3まではRedmine自体のlibにあったのですが、1.4ではなくなっていました。
そこで、mypagepartsのlibにar_condition.rbを持ってきて、
フッターでATOMのリンクを作るところでカスタムクエリの有無を判定していなかったので
判定させるようにしました。
もうひとつ、project_idがないよというのでつまっております。
mikoto20000 commentedon Apr 28, 2012
もう少し時間が掛かりますね。mypagepartscollectionへのアクセス権を追加してみましたので(本当に追加されているかどうかちょっと不安)、修正できたらコミットをお願いします。
mypageparts_collection,spend_time_columnを有効化(fixed #20,#23)。
mypageparts_collection,spend_time_columnを有効化(fixed #20,#23)。