Skip to content
Snippets Groups Projects
Commit 18e61355 authored by totten's avatar totten
Browse files

CRM-12647 - CRM_Utils_Migrate_Export - Cleanup

----------------------------------------
* CRM-12647: Customization export/import crashes on "&"
  http://issues.civicrm.org/jira/browse/CRM-12647
parent 8632d2d7
No related branches found
No related tags found
No related merge requests found
......@@ -359,9 +359,7 @@ AND entity_id IS NULL
$key = 'relationship_type';
}
$xml .= "\n " . $this->renderTextTag('extends_entity_column_value_option_group', $key);
$types = explode(CRM_Core_DAO::VALUE_SEPARATOR,
substr($object->$name, 1, -1)
);
$types = explode(CRM_Core_DAO::VALUE_SEPARATOR, substr($object->$name, 1, -1));
$value = array();
foreach ($types as $type) {
$values[] = $this->_xml['optionValue']['map']["$key.{$type}"];
......@@ -382,15 +380,11 @@ AND entity_id IS NULL
list($tableName, $columnName, $groupID) = CRM_Core_BAO_CustomField::getTableColumnGroup($cfID);
$value = "custom.{$tableName}.{$columnName}";
}
$xml .= "\n " . $this->renderTextTag($name, $value);
}
else {
$value = str_replace(CRM_Core_DAO::VALUE_SEPARATOR,
self::XML_VALUE_SEPARATOR,
$object->$name
);
$xml .= "\n " . $this->renderTextTag($name, $value);
$value = str_replace(CRM_Core_DAO::VALUE_SEPARATOR, self::XML_VALUE_SEPARATOR, $object->$name);
}
$xml .= "\n " . $this->renderTextTag($name, $value);
}
}
if ($additional) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment