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:
cf5a942
)
CRM-21808 Install custom group for Contribution or ContributioRecur subtypes based...
author
scardinius
<scardinius@chords.pl>
Tue, 27 Feb 2018 09:58:40 +0000
(10:58 +0100)
committer
scardinius
<scardinius@chords.pl>
Tue, 27 Feb 2018 09:58:40 +0000
(10:58 +0100)
CRM/Utils/Migrate/Import.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Migrate/Import.php
b/CRM/Utils/Migrate/Import.php
index 8a9cf99e74f8d0bdd0fc8d4868afb9ead7cac9d1..6c3db98e163f7d32dc4c0a102097efc24f982330 100644
(file)
--- a/
CRM/Utils/Migrate/Import.php
+++ b/
CRM/Utils/Migrate/Import.php
@@
-242,6
+242,15
@@
WHERE v.option_group_id = %1
elseif (in_array($customGroup->extends, array('Individual', 'Organization', 'Household'))) {
$valueIDs = $optionValues;
}
+ elseif (in_array($customGroup->extends, array('Contribution', 'ContributionRecur'))) {
+ $sql = "SELECT id
+ FROM civicrm_financial_type
+ WHERE name IN ('{$optValues}')";
+ $dao = &CRM_Core_DAO::executeQuery($sql);
+ while ($dao->fetch()) {
+ $valueIDs[] = $dao->id;
+ }
+ }
else {
$sql = "
SELECT v.value