From 949d06dce94dc359db363f8e80f4c1873ce994cf Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 31 Mar 2011 16:49:06 +0000 Subject: [PATCH] Fix status merge, strip spaces --- timesheet/inc/class.timesheet_merge.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/timesheet/inc/class.timesheet_merge.inc.php b/timesheet/inc/class.timesheet_merge.inc.php index 7402081b7e..f74865b1b5 100644 --- a/timesheet/inc/class.timesheet_merge.inc.php +++ b/timesheet/inc/class.timesheet_merge.inc.php @@ -102,10 +102,13 @@ class timesheet_merge extends bo_merge // Convert to human friendly values $types = timesheet_export_csv::$types; $_selects = array('status' => $this->bo->status_labels); + foreach($_selects['status'] as &$status) + { + $status = str_replace(' ', '', $status); + } foreach($_selects as $name => $value) { $selects['ts_'.$name] = $value; - $types['select'][] = 'ts_'.$name; } importexport_export_csv::convert($record, $types, 'timesheet', $selects);