Skip to content

Commit 22c5929

Browse files
committed
Fixing crash bug when you follow the 'Your posts' link from the admin
dashboard.
1 parent acd9cad commit 22c5929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/admin/dashboard/_welcome.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<p><strong><%= _("Content") %></strong></p>
88
<ul>
99
<li> <%= sprintf("%s %d", link_to(_("Total posts:"), :controller => 'admin/content'), @statposts) %></li>
10-
<li> <%= sprintf("%s %d", link_to(_("Your posts:"), :controller => 'admin/content', :search => "[user_id]=#{current_user.id}"), @statuserposts) %></li>
10+
<li> <%= sprintf("%s %d", link_to(_("Your posts:"), :controller => 'admin/content', 'search[user_id]' => current_user.id), @statuserposts) %></li>
1111
<li> <%= sprintf("%s %d", link_to(_("Categories:"), :controller => 'admin/categories'), @categories) %></li>
1212
</ul>
1313

0 commit comments

Comments
 (0)