X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FMigrate%2FImport.php;h=dc9e24419ae308b18ed25461a38c41b010c7adba;hb=3f7c098fcb6553d0662b9bbf3df2261244a97aa8;hp=1736130bf0a0a903f469e686ff7742215ffa4176;hpb=8df04fbec4927b2e8fe765c825fdd31fc81632e0;p=civicrm-core.git diff --git a/CRM/Utils/Migrate/Import.php b/CRM/Utils/Migrate/Import.php index 1736130bf0..dc9e24419a 100644 --- 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