projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c997dfa
)
added missing group assignment
author
tschuettler
<tschuettler@oxfam.de>
Wed, 26 Oct 2016 09:48:07 +0000
(11:48 +0200)
committer
GitHub
<noreply@github.com>
Wed, 26 Oct 2016 09:48:07 +0000
(11:48 +0200)
CRM/Contact/Form/Task/SaveSearch.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/Form/Task/SaveSearch.php
b/CRM/Contact/Form/Task/SaveSearch.php
index 9fe9f0de119b28550912b50361ba97b916e855a5..e20f0fef99d2cdb25749ce021312ee0de7724d95 100644
(file)
--- a/
CRM/Contact/Form/Task/SaveSearch.php
+++ b/
CRM/Contact/Form/Task/SaveSearch.php
@@
-234,10
+234,10
@@
class CRM_Contact_Form_Task_SaveSearch extends CRM_Contact_Form_Task {
$params['id'] = CRM_Contact_BAO_SavedSearch::getName($this->_id, 'id');
}
- CRM_Contact_BAO_Group::create($params);
+
$group =
CRM_Contact_BAO_Group::create($params);
// Update mapping with the name and description of the group.
- if ($mappingId) {
+ if ($mappingId
&& $group
) {
$mappingParams = array(
'id' => $mappingId,
'name' => CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Group', $group->id, 'name', 'id'),