mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
"fixed wrong order of private column in csv import"
This commit is contained in:
parent
203605d8e8
commit
d15b70c42e
@ -271,6 +271,10 @@ switch($_POST['action'])
|
||||
|
||||
$log = '<table border="1" style="border: 1px dotted black; border-collapse: collapse;">'."\n\t<tr><td>#</td>\n";
|
||||
|
||||
if (!in_array('private',$addr_fields)) // autocreate public access if not set by user
|
||||
{
|
||||
$log .= "\t\t<td><b>private</b></td>\n";
|
||||
}
|
||||
foreach($addr_fields as $csv_idx => $addr)
|
||||
{ // convert $_POST['trans'][$csv_idx] into array of pattern => value
|
||||
// if (!$_POST['debug']) echo "<p>$csv_idx: ".$csv_fields[$csv_idx].": $addr".($_POST['trans'][$csv_idx] ? ': '.$_POST['trans'][$csv_idx] : '')."</p>";
|
||||
@ -296,10 +300,6 @@ switch($_POST['action'])
|
||||
}
|
||||
$log .= "\t\t<td><b>$addr</b></td>\n";
|
||||
}
|
||||
if (!in_array('private',$addr_fields)) // autocreate public access if not set by user
|
||||
{
|
||||
$log .= "\t\t<td><b>private</b></td>\n";
|
||||
}
|
||||
$start = $_POST['start'] < 1 ? 1 : $_POST['start'];
|
||||
|
||||
// ignore empty lines, is_null($fields[0]) is returned on empty lines !!!
|
||||
|
Loading…
Reference in New Issue
Block a user