mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Strip leading spaces from status labels for better matching
This commit is contained in:
parent
49f8cc3258
commit
597d2f6dcc
@ -150,6 +150,12 @@ class timesheet_import_csv implements importexport_iface_import_plugin {
|
|||||||
'cat_id' => $categories->return_sorted_array(0,False,'','','',true)
|
'cat_id' => $categories->return_sorted_array(0,False,'','','',true)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Status need leading spaces removed
|
||||||
|
foreach($lookups['ts_status'] as $id => &$label) {
|
||||||
|
$label = str_replace(' ', '',trim($label));
|
||||||
|
if($label == '') unset($lookups['ts_status'][$id]);
|
||||||
|
}
|
||||||
|
|
||||||
// Start counting successes
|
// Start counting successes
|
||||||
$count = 0;
|
$count = 0;
|
||||||
$this->results = array();
|
$this->results = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user