diff --git a/CRM/Utils/Migrate/Import.php b/CRM/Utils/Migrate/Import.php index 00f5b115d110..802e2647deca 100644 --- a/CRM/Utils/Migrate/Import.php +++ b/CRM/Utils/Migrate/Import.php @@ -160,7 +160,7 @@ public function optionValues(&$xml, &$idMap) { $optionValue->option_group_id = $idMap['option_group'][(string ) $optionValueXML->option_group_name]; if (empty($optionValue->option_group_id)) { //CRM-17410 check if option group already exist. - $optionValue->option_group_id = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', $optionValueXML->option_group_name, 'id', 'name'); + $optionValue->option_group_id = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', (string) $optionValueXML->option_group_name, 'id', 'name'); } $this->copyData($optionValue, $optionValueXML, FALSE, 'label'); if (!isset($optionValue->value)) {