mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Case-insensitive comparison for importing boolean values (Yes/No)
This commit is contained in:
parent
246683331b
commit
4aad06e61d
@ -383,7 +383,7 @@ class importexport_import_csv implements importexport_iface_import_record { //,
|
||||
}
|
||||
foreach((array)$fields['select-bool'] as $name) {
|
||||
if($record[$name] != null && $record[$name] != '') {
|
||||
$record[$name] = ($record[$name] == lang('Yes') || $record[$name] == '1' ? 1 : 0);
|
||||
$record[$name] = (strtolower($record[$name]) == strtolower(lang('Yes')) || $record[$name] == '1' ? 1 : 0);
|
||||
}
|
||||
}
|
||||
foreach((array)$fields['date-time'] as $name) {
|
||||
|
Loading…
Reference in New Issue
Block a user