From 7bec8d9aa9e42a579e3d7665436d96ec19af496a Mon Sep 17 00:00:00 2001 From: churchtools Date: Tue, 31 Mar 2015 10:55:35 +0200 Subject: [PATCH] (CDB) Fix wrong history log for adding new group to person with different gemeindeperson_id --- system/churchdb/churchdb_ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/churchdb/churchdb_ajax.php b/system/churchdb/churchdb_ajax.php index acfcf582..880759af 100644 --- a/system/churchdb/churchdb_ajax.php +++ b/system/churchdb/churchdb_ajax.php @@ -547,7 +547,7 @@ function churchdb_addPersonGroupRelation($p_id, $g_id, $leader, $date, $followup } $info = getGroupInfo($g_id); - cdb_log("Neu: $info->gruppentyp $info->gruppe (P$p_id:G$g_id, ". "Leiter". ": $leader)", 2, $gp_id, CDB_LOG_PERSON, 1); + cdb_log("Neu: $info->gruppentyp $info->gruppe (P$p_id:G$g_id, ". "Leiter". ": $leader)", 2, $p_id, CDB_LOG_PERSON, 1); $automail = chuchdb_sendAutomaticGroupEMail($g_id, $p_id, $leader); if ((getConf('churchdb_sendgroupmails', true)) && ($info->mail_an_leiter_yn == 1)) { // TODO: put automail and comment in separate arguments in informLeaderAboutNewGroupMember to use it in mail template