Commit a210c1fdcf00b613aefd2436c98940cf5dbdc3cc

Authored by Austin Smith
1 parent 3bb5f82141
Exists in master

fixing 500 error

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

app/views/settings/_project.html.erb View file @ a210c1f
... ... @@ -24,7 +24,7 @@
24 24  
25 25 <div id="column_manager">
26 26 <%= render :partial => 'settings/column_manager', :locals => {
27   - :columns => TaskBoardColumn.find_all_by_project_id(@project.id, :order => "weight ASC"),
  27 + :columns => TaskBoardColumn.where(:project => @project.id).order("weight ASC"),
28 28 :statuses => IssueStatus.all
29 29 }
30 30 %>
app/views/settings/update.js.erb View file @ a210c1f
1 1 $('#column_manager').html("<%= escape_javascript( render(
2 2 :partial => 'settings/column_manager',
3 3 :locals => {
4   - :columns => TaskBoardColumn.find_all_by_project_id(@project.id, :order => 'weight asc'),
  4 + :columns => TaskBoardColumn.where(:project => @project.id).order('weight ASC'),
5 5 :statuses => IssueStatus.all
6 6 })) -%>");