diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb index 6a27a1a1a..59b0f6f03 100644 --- a/app/controllers/files_controller.rb +++ b/app/controllers/files_controller.rb @@ -280,7 +280,7 @@ class FilesController < ApplicationController render :layout => 'base_projects' elsif params[:course_id] @container_type = 1 - @page = params[:page] ? params[:page].to_i + 2 : 0 + @page = params[:page] ? params[:page].to_i + 1 : 2 if params[:sort] params[:sort].split(",").each do |sort_type| order_by = sort_type.split(":") diff --git a/app/views/files/_course_file.html.erb b/app/views/files/_course_file.html.erb index 6728128d4..5a6ce69ce 100644 --- a/app/views/files/_course_file.html.erb +++ b/app/views/files/_course_file.html.erb @@ -123,7 +123,7 @@
- <%= render :partial => 'course_list',:locals => {course: @course,all_attachments: @all_attachments,sort:@sort,order:@order,curse_attachments:@obj_attachments, :page=>1} %> + <%= render :partial => 'course_list',:locals => {course: @course,all_attachments: @all_attachments,sort:@sort,order:@order,curse_attachments:@obj_attachments, :page=>2} %>
<% html_title(l(:label_attachment_plural)) -%> \ No newline at end of file