Changeset 1123

Show
Ignore:
Timestamp:
07/31/07 00:54:04 (1 year ago)
Author:
alban
Message:

fixe un bug sur les utilisateurs sans username

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/documents_controller.rb

    r1111 r1123  
    133133     
    134134    @users = Document.find(id).nonsubscribers.delete_if do |user| 
    135       not (user.name.downcase.include?(input) or user.username.downcase.include?(input)) 
     135      not (user.name.downcase.include?(input) or (not user.username.nil? and user.username.downcase.include?(input))) 
    136136    end 
    137137    render :partial => "users/users", :object => @users,