// Write group info.
$group = $this->getGroupAttrs();
- $group_part = "<group name=\"".htmlspecialchars($group['name'])."\"";
+ $group_part = "<group group_key=\"".htmlspecialchars($group['group_key'])."\"";
+ $group_part .= " name=\"".htmlspecialchars($group['name'])."\"";
$group_part .= " description=\"".htmlspecialchars($group['description'])."\"";
$group_part .= " currency=\"".htmlspecialchars($group['currency'])."\"";
$group_part .= " decimal_mark=\"".$group['decimal_mark']."\"";
fwrite($this->file, $this->indentation." <custom_fields>\n");
foreach ($custom_fields as $custom_field) {
$custom_field_part = $this->indentation.' '."<custom_field id=\"".$this->customFieldMap[$custom_field['id']]."\"";
+ $custom_field_part .= " entity_type=\"".$custom_field['entity_type']."\"";
$custom_field_part .= " type=\"".$custom_field['type']."\"";
$custom_field_part .= " label=\"".htmlspecialchars($custom_field['label'])."\"";
$custom_field_part .= " required=\"".$custom_field['required']."\"";