Fix status merge, strip spaces

This commit is contained in:
Nathan Gray 2011-03-31 16:49:06 +00:00
parent ddabb6a46f
commit 949d06dce9

View File

@ -102,10 +102,13 @@ class timesheet_merge extends bo_merge
// Convert to human friendly values // Convert to human friendly values
$types = timesheet_export_csv::$types; $types = timesheet_export_csv::$types;
$_selects = array('status' => $this->bo->status_labels); $_selects = array('status' => $this->bo->status_labels);
foreach($_selects['status'] as &$status)
{
$status = str_replace(' ', '', $status);
}
foreach($_selects as $name => $value) foreach($_selects as $name => $value)
{ {
$selects['ts_'.$name] = $value; $selects['ts_'.$name] = $value;
$types['select'][] = 'ts_'.$name;
} }
importexport_export_csv::convert($record, $types, 'timesheet', $selects); importexport_export_csv::convert($record, $types, 'timesheet', $selects);