projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for CRM-12391
[civicrm-core.git]
/
CRM
/
Activity
/
BAO
/
Activity.php
diff --git
a/CRM/Activity/BAO/Activity.php
b/CRM/Activity/BAO/Activity.php
index 996379dbbe79ea38d45d93b2e0aa2d7b395b9825..941e55c19ec54d4e71a9d0a70f69928afde6e19c 100644
(file)
--- a/
CRM/Activity/BAO/Activity.php
+++ b/
CRM/Activity/BAO/Activity.php
@@
-1498,6
+1498,7
@@
LEFT JOIN civicrm_case_activity ON ( civicrm_case_activity.activity_id = tbl.a
);
}
);
}
+ $success = 0;
$escapeSmarty = $sent = FALSE;
foreach ($contactDetails as $values) {
$contactId = $values['contact_id'];
$escapeSmarty = $sent = FALSE;
foreach ($contactDetails as $values) {
$contactId = $values['contact_id'];
@@
-1533,10
+1534,11
@@
LEFT JOIN civicrm_case_activity ON ( civicrm_case_activity.activity_id = tbl.a
)) {
// even a single successful delivery should set this falg to true
$sent = TRUE;
)) {
// even a single successful delivery should set this falg to true
$sent = TRUE;
+ $success++;
}
}
}
}
- return array($sent, $activity->id);
+ return array($sent, $activity->id
, $success
);
}
/**
}
/**