diff --git a/timesheet/inc/class.timesheet_export_csv.inc.php b/timesheet/inc/class.timesheet_export_csv.inc.php index 2dd167d2ce..edce3d97a4 100644 --- a/timesheet/inc/class.timesheet_export_csv.inc.php +++ b/timesheet/inc/class.timesheet_export_csv.inc.php @@ -71,6 +71,10 @@ class timesheet_export_csv implements importexport_iface_export_plugin { return 'csv'; } + public static function get_mimetype() { + return 'text/csv'; + } + /** * return html for options. * this way the plugin has all opportunities for options tab diff --git a/timesheet/inc/class.timesheet_export_openoffice.inc.php b/timesheet/inc/class.timesheet_export_openoffice.inc.php index 72fcb9e38f..220e380bf6 100644 --- a/timesheet/inc/class.timesheet_export_openoffice.inc.php +++ b/timesheet/inc/class.timesheet_export_openoffice.inc.php @@ -178,6 +178,10 @@ class timesheet_export_openoffice implements importexport_iface_export_plugin { return 'ods'; } + public static function get_mimetype() { + return 'application/vnd.oasis.opendocument.spreadsheet'; + } + /** * return html for options. * this way the plugin has all opertunities for options tab