mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Trim components of multiselect fields
The csv export with display values adds spaces after the separator. Remove them during the import so manual action isn't needed.
This commit is contained in:
parent
08032dd776
commit
11cca0a514
@ -522,10 +522,10 @@ class importexport_import_csv implements importexport_iface_import_record { //,
|
||||
$subs = explode(',',$record_value);
|
||||
for($sub_index = 0; $sub_index < count($subs); $sub_index++)
|
||||
{
|
||||
$sub_key = static::find_select_key($subs[$sub_index], $selects);
|
||||
$sub_key = static::find_select_key(trim($subs[$sub_index]), $selects);
|
||||
if(!$sub_key)
|
||||
{
|
||||
$sub_key = static::find_select_key($subs[$sub_index].','.$subs[$sub_index+1], $selects);
|
||||
$sub_key = static::find_select_key(trim($subs[$sub_index]).','.trim($subs[$sub_index+1]), $selects);
|
||||
if($sub_key) $sub_index++;
|
||||
}
|
||||
if($sub_key)
|
||||
|
Loading…
Reference in New Issue
Block a user