# HG changeset patch # User bsw # Date 1330556866 -3600 # Node ID f0a59bbf659ad6a6af5d335384508b28f0719378 # Parent 7c6bcbd33603e4687487f497d49ea578b5b31191 Search only for activated members diff -r 7c6bcbd33603 -r f0a59bbf659a model/member.lua --- a/model/member.lua Thu Mar 01 00:07:30 2012 +0100 +++ b/model/member.lua Thu Mar 01 00:07:46 2012 +0100 @@ -325,7 +325,7 @@ return self:new_selector() :add_field( {'"highlight"("member"."name", ?)', search_string }, "name_highlighted") :add_where{ '"member"."text_search_data" @@ "text_search_query"(?)', search_string } - :add_where("active") + :add_where("activated NOTNULL AND active") end function Member.object:send_invitation()