fixed bug in create leavemessage from bids

This commit is contained in:
yanxd 2014-01-02 20:18:39 +08:00
parent e577e1713f
commit e8a313be6c
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ class BidsController < ApplicationController
@bid.add_jour(User.current, message, refer_user_id)
end
@user = @bid.author
@jours = @bid.journals_for_messages.reverse
@jours = @bid.journals_for_messages.where('m_parent_id IS NULL').order('created_on DESC')
@limit = 10
@feedback_count = @jours.count
@feedback_pages = Paginator.new @feedback_count, @limit, params['page']