X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/77f0fbc75930d7d2f9a3d3acadb64be44b871621..6ede4ba89cf66620bd1c40d092b3518fd51ba69c:/WEB-INF/lib/ttGroupExportHelper.class.php diff --git a/WEB-INF/lib/ttGroupExportHelper.class.php b/WEB-INF/lib/ttGroupExportHelper.class.php index f1ea228d..aba161f6 100644 --- a/WEB-INF/lib/ttGroupExportHelper.class.php +++ b/WEB-INF/lib/ttGroupExportHelper.class.php @@ -411,6 +411,21 @@ class ttGroupExportHelper { fwrite($this->file, $this->indentation." \n"); unset($custom_field_options); + // Write custom field log. + $custom_field_log = ttTeamHelper::getCustomFieldLog($this->group_id); + fwrite($this->file, $this->indentation." \n"); + foreach ($custom_field_log as $entry) { + $custom_field_log_part = $this->indentation.' '."logMap[$entry['log_id']]."\""; + $custom_field_log_part .= " field_id=\"".$this->customFieldMap[$entry['field_id']]."\""; + $custom_field_log_part .= " option_id=\"".$this->customFieldOptionMap[$entry['option_id']]."\""; + $custom_field_log_part .= " value=\"".htmlentities($entry['value'])."\""; + $custom_field_log_part .= " status=\"".$entry['status']."\""; + $custom_field_log_part .= ">\n"; + fwrite($this->file, $custom_field_log_part); + } + fwrite($this->file, $this->indentation." \n"); + unset($custom_field_log); + // Call self recursively for all subgroups. foreach ($this->subgroups as $subgroup) { $subgroup_helper = new ttGroupExportHelper($subgroup['id'], $this->file, $this->indentation.' ');