8000 mypageparts_collection · Issue #23 · alminium/alminium · GitHub
[go: up one dir, main page]

Skip to content

mypageparts_collection #23

Open
Open

Description

Activity

  1. drakontia commented on Apr 25, 2012

    @drakontia
    Member

    今のところ、エラーは検知されていない。

  2. mikoto20000 commented on Apr 27, 2012

    @mikoto20000
    MemberAuthor

    下記のようなエラーが発生し、mypageが見れなくなる(カスタムレポートをマイページに追加時?)

    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'
    
  3. drakontia commented on Apr 28, 2012

    @drakontia
    Member

    カスタムクエリレポートのところでした。
    ARConditionクラスは1.3まではRedmine自体のlibにあったのですが、1.4ではなくなっていました。
    そこで、mypagepartsのlibにar_condition.rbを持ってきて、
    フッターでATOMのリンクを作るところでカスタムクエリの有無を判定していなかったので
    判定させるようにしました。
    もうひとつ、project_idがないよというのでつまっております。

    ActionView::TemplateError (missing attribute: project_id) on line #51 of vendor/plugins/redmine_mypageparts_collection/app/views/my/blocks/_custom_query_    report.rhtml:                                                                                                                                              48:     <td>
    49:        <select name="query">
    50:         <% @sidebar_queries.each do |query| -%>
    51:          <option value="<%= h(query.id) %>" <% if @user.pref[:others][:custom_query1][:id].to_i==query.id -%>selected="selected"<% end -%>><% if(quer    y.project_id.to_i!=nil) -%><%= Project.visible.find(query.project_id.to_i).name + " > " %><% end -%><%= h(query.name) %></option>
    52:         <% end -%>
    53:        </select>
    54:     </td>
    
  4. mikoto20000 commented on Apr 28, 2012

    @mikoto20000
    MemberAuthor

    もう少し時間が掛かりますね。mypagepartscollectionへのアクセス権を追加してみましたので(本当に追加されているかどうかちょっと不安)、修正できたらコミットをお願いします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0