diff --git a/app/Services/AdminService.php b/app/Services/AdminService.php index 31c372e2d1..cf3b2aac78 100644 --- a/app/Services/AdminService.php +++ b/app/Services/AdminService.php @@ -64,6 +64,7 @@ public function countCommonXrefs(Tree $tree1, Tree $tree2): int { $subquery1 = DB::table('change') ->where('gedcom_id', '=', $tree1->id()) + ->where('status', '=', 'pending') ->select(['xref AS xref1']) ->union(DB::table('individuals') ->where('i_file', '=', $tree1->id())