mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
Fix setting of n_prefix based on Title field - bug #942723 from tachometry_nik
This commit is contained in:
parent
be72681b62
commit
413710d555
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
/* Thanks to knecke for the Outlook fields */
|
/* Thanks to knecke for the Outlook fields */
|
||||||
var $import = array(
|
var $import = array(
|
||||||
'Anrede' => 'title',
|
'Anrede' => 'n_prefix',
|
||||||
'Vorname' => 'n_given',
|
'Vorname' => 'n_given',
|
||||||
'Weitere Vornamen' => 'n_middle',
|
'Weitere Vornamen' => 'n_middle',
|
||||||
'Nachname' => 'n_family',
|
'Nachname' => 'n_family',
|
||||||
@ -129,7 +129,7 @@
|
|||||||
|
|
||||||
function import_start_record($buffer)
|
function import_start_record($buffer)
|
||||||
{
|
{
|
||||||
$top=array();
|
$top = array();
|
||||||
++$this->id;
|
++$this->id;
|
||||||
$this->currentrecord = $top;
|
$this->currentrecord = $top;
|
||||||
return $buffer;
|
return $buffer;
|
||||||
@ -147,8 +147,8 @@
|
|||||||
|
|
||||||
function import_end_record($buffer)
|
function import_end_record($buffer)
|
||||||
{
|
{
|
||||||
$buffer[$this->id]='';
|
$buffer[$this->id] = '';
|
||||||
while ( list($name, $value) = each($this->currentrecord))
|
while(list($name, $value) = each($this->currentrecord))
|
||||||
{
|
{
|
||||||
$buffer[$this->id][$name] = $value;
|
$buffer[$this->id][$name] = $value;
|
||||||
//echo '<br>'.$name.' => '.$value;
|
//echo '<br>'.$name.' => '.$value;
|
||||||
@ -160,9 +160,9 @@
|
|||||||
{
|
{
|
||||||
$contacts = CreateObject('phpgwapi.contacts');
|
$contacts = CreateObject('phpgwapi.contacts');
|
||||||
//echo '<br>';
|
//echo '<br>';
|
||||||
for ($i=1;$i<=count($buffer);$i++)
|
for($i=1;$i<=count($buffer);$i++)
|
||||||
{
|
{
|
||||||
while ( list($name,$value) = @each($buffer[$i]) )
|
while(list($name,$value) = @each($buffer[$i]))
|
||||||
{
|
{
|
||||||
//echo '<br>'.$i.': '.$name.' => '.$value;
|
//echo '<br>'.$i.': '.$name.' => '.$value;
|
||||||
$entry[$i][$name] = $value;
|
$entry[$i][$name] = $value;
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
var $type = 'csv';
|
var $type = 'csv';
|
||||||
|
|
||||||
var $import = array(
|
var $import = array(
|
||||||
'Title' => 'title',
|
'Title' => 'n_prefix',
|
||||||
'First Name' => 'n_given',
|
'First Name' => 'n_given',
|
||||||
'Middle Name' => 'n_middle',
|
'Middle Name' => 'n_middle',
|
||||||
'Last Name' => 'n_family',
|
'Last Name' => 'n_family',
|
||||||
@ -125,7 +125,7 @@
|
|||||||
|
|
||||||
function import_start_record($buffer)
|
function import_start_record($buffer)
|
||||||
{
|
{
|
||||||
$top=array();
|
$top = array();
|
||||||
++$this->id;
|
++$this->id;
|
||||||
$this->currentrecord = $top;
|
$this->currentrecord = $top;
|
||||||
return $buffer;
|
return $buffer;
|
||||||
@ -143,8 +143,8 @@
|
|||||||
|
|
||||||
function import_end_record($buffer)
|
function import_end_record($buffer)
|
||||||
{
|
{
|
||||||
$buffer[$this->id]='';
|
$buffer[$this->id] = '';
|
||||||
while ( list($name, $value) = each($this->currentrecord))
|
while(list($name, $value) = each($this->currentrecord))
|
||||||
{
|
{
|
||||||
$buffer[$this->id][$name] = $value;
|
$buffer[$this->id][$name] = $value;
|
||||||
//echo '<br>'.$name.' => '.$value;
|
//echo '<br>'.$name.' => '.$value;
|
||||||
@ -156,9 +156,9 @@
|
|||||||
{
|
{
|
||||||
$contacts = CreateObject('phpgwapi.contacts');
|
$contacts = CreateObject('phpgwapi.contacts');
|
||||||
//echo '<br>';
|
//echo '<br>';
|
||||||
for ($i=1;$i<=count($buffer);$i++)
|
for($i=1;$i<=count($buffer);$i++)
|
||||||
{
|
{
|
||||||
while ( list($name,$value) = @each($buffer[$i]) )
|
while(list($name,$value) = @each($buffer[$i]))
|
||||||
{
|
{
|
||||||
//echo '<br>'.$i.': '.$name.' => '.$value;
|
//echo '<br>'.$i.': '.$name.' => '.$value;
|
||||||
$entry[$i][$name] = $value;
|
$entry[$i][$name] = $value;
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
var $type = 'csv';
|
var $type = 'csv';
|
||||||
|
|
||||||
var $import = array(
|
var $import = array(
|
||||||
'Tratamiento' => 'title',
|
'Tratamiento' => 'n_prefix',
|
||||||
'Nombre' => 'n_given',
|
'Nombre' => 'n_given',
|
||||||
'Segundo Nombre' => 'n_middle',
|
'Segundo Nombre' => 'n_middle',
|
||||||
'Apellidos' => 'n_family',
|
'Apellidos' => 'n_family',
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
|
|
||||||
function import_start_record($buffer)
|
function import_start_record($buffer)
|
||||||
{
|
{
|
||||||
$top=array();
|
$top = array();
|
||||||
++$this->id;
|
++$this->id;
|
||||||
$this->currentrecord = $top;
|
$this->currentrecord = $top;
|
||||||
return $buffer;
|
return $buffer;
|
||||||
@ -141,8 +141,8 @@
|
|||||||
|
|
||||||
function import_end_record($buffer)
|
function import_end_record($buffer)
|
||||||
{
|
{
|
||||||
$buffer[$this->id]='';
|
$buffer[$this->id] = '';
|
||||||
while ( list($name, $value) = each($this->currentrecord))
|
while(list($name, $value) = each($this->currentrecord))
|
||||||
{
|
{
|
||||||
$buffer[$this->id][$name] = $value;
|
$buffer[$this->id][$name] = $value;
|
||||||
//echo '<br>'.$name.' => '.$value;
|
//echo '<br>'.$name.' => '.$value;
|
||||||
@ -154,9 +154,9 @@
|
|||||||
{
|
{
|
||||||
$contacts = CreateObject('phpgwapi.contacts');
|
$contacts = CreateObject('phpgwapi.contacts');
|
||||||
//echo '<br>';
|
//echo '<br>';
|
||||||
for ($i=1;$i<=count($buffer);$i++)
|
for($i=1;$i<=count($buffer);$i++)
|
||||||
{
|
{
|
||||||
while ( list($name,$value) = @each($buffer[$i]) )
|
while(list($name,$value) = @each($buffer[$i]))
|
||||||
{
|
{
|
||||||
//echo '<br>'.$i.': '.$name.' => '.$value;
|
//echo '<br>'.$i.': '.$name.' => '.$value;
|
||||||
$entry[$i][$name] = $value;
|
$entry[$i][$name] = $value;
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
var $type = 'csv';
|
var $type = 'csv';
|
||||||
|
|
||||||
var $import = array(
|
var $import = array(
|
||||||
'Titolo' => 'title',
|
'Titolo' => 'n_prefix',
|
||||||
'Nome' => 'n_given',
|
'Nome' => 'n_given',
|
||||||
'Secondo nome' => 'n_middle',
|
'Secondo nome' => 'n_middle',
|
||||||
'Cognome' => 'n_family',
|
'Cognome' => 'n_family',
|
||||||
@ -134,7 +134,7 @@
|
|||||||
|
|
||||||
function import_start_record($buffer)
|
function import_start_record($buffer)
|
||||||
{
|
{
|
||||||
$top=array();
|
$top = array();
|
||||||
++$this->id;
|
++$this->id;
|
||||||
$this->currentrecord = $top;
|
$this->currentrecord = $top;
|
||||||
return $buffer;
|
return $buffer;
|
||||||
@ -152,8 +152,8 @@
|
|||||||
|
|
||||||
function import_end_record($buffer)
|
function import_end_record($buffer)
|
||||||
{
|
{
|
||||||
$buffer[$this->id]='';
|
$buffer[$this->id] = '';
|
||||||
while ( list($name, $value) = each($this->currentrecord))
|
while(list($name, $value) = each($this->currentrecord))
|
||||||
{
|
{
|
||||||
$buffer[$this->id][$name] = $value;
|
$buffer[$this->id][$name] = $value;
|
||||||
//echo '<br>'.$name.' => '.$value;
|
//echo '<br>'.$name.' => '.$value;
|
||||||
@ -165,9 +165,9 @@
|
|||||||
{
|
{
|
||||||
$contacts = CreateObject('phpgwapi.contacts');
|
$contacts = CreateObject('phpgwapi.contacts');
|
||||||
//echo '<br>';
|
//echo '<br>';
|
||||||
for ($i=1;$i<=count($buffer);$i++)
|
for($i=1;$i<=count($buffer);$i++)
|
||||||
{
|
{
|
||||||
while ( list($name,$value) = @each($buffer[$i]) )
|
while(list($name,$value) = @each($buffer[$i]))
|
||||||
{
|
{
|
||||||
//echo '<br>'.$i.': '.$name.' => '.$value;
|
//echo '<br>'.$i.': '.$name.' => '.$value;
|
||||||
$entry[$i][$name] = $value;
|
$entry[$i][$name] = $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user