osclass/Osclass — pull request #1456 by groomain (2014-04-08 12:07:36+00:00)
Title: BUG - Two users with same search = 2 mails each

Hi,

So, I changed findByType by this function findByTypeGroup.

Using findByType function result to contact X users, X times if they have the same search.

For exemple, if 3 users have the same search, the first foreach will do 3 times the search and send 3 times a mail for each users.

But with findByTypeGroup, the search will be run one time and the result will be send to 3 users.