From 2f77d66694b80d40ef3ba0ccc5a61b8da2b258a9 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 20 Jul 2015 15:25:02 +0800 Subject: [PATCH] fix for hiding and showing by normal members --- app/views/plugin/personal_conference/_profile.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/plugin/personal_conference/_profile.html.erb b/app/views/plugin/personal_conference/_profile.html.erb index 971dac7..93b9fba 100644 --- a/app/views/plugin/personal_conference/_profile.html.erb +++ b/app/views/plugin/personal_conference/_profile.html.erb @@ -16,8 +16,8 @@ <% if has_access? %>
- <%= link_to('Hide', '#', :class => "btn btn-mini list-active-btn disabled", "data-check-action" => "list-be-hide", :rel => toggle_hide_admin_writing_conferences_path(member_profile_id: params[:id], disable: 'true') ) %> - <%= link_to('Show', '#', :class => "btn btn-mini list-active-btn disabled", "data-check-action" => "list-be-show", :rel => toggle_hide_admin_writing_conferences_path(member_profile_id: params[:id], disable: 'false') ) %> + <%= link_to('Hide', '#', :class => "btn btn-mini list-active-btn disabled", "data-check-action" => "list-be-hide", :rel => toggle_hide_admin_writing_conferences_path(member_profile_id: @member.id.to_s, disable: 'true') ) %> + <%= link_to('Show', '#', :class => "btn btn-mini list-active-btn disabled", "data-check-action" => "list-be-show", :rel => toggle_hide_admin_writing_conferences_path(member_profile_id: @member.id.to_s, disable: 'false') ) %>
<% end -%>