Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Don't include deleted families in directory map
Browse files Browse the repository at this point in the history
Fixes #549
  • Loading branch information
seven1m committed Sep 26, 2015
1 parent 1355a82 commit 3d50218
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/family.rb
Expand Up @@ -228,6 +228,7 @@ def self.mappable_details
'left outer join people on people.family_id = families.id ' \
"where people.visible = #{Family.connection.quoted_true} " \
"and families.visible = #{Family.connection.quoted_true} " \
"and families.deleted = #{Family.connection.quoted_false} " \
"and people.status = #{Person.statuses[:active]} " \
"and families.site_id = #{Site.current.id} " \
'and coalesce(families.latitude, 0.0) != 0.0 ' \
Expand Down

0 comments on commit 3d50218

Please sign in to comment.