mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
"fixed bug reported on the users list by e.rawpuorge@pfr.de: KAddressbook labels the work and home address wrong: we are no longer using the adr_(one|two)_type fields from addressbook, but KAddressbook expects them, they are now send with constant values 'Work' and 'Home'"
This commit is contained in:
parent
b6774051f1
commit
65b18f32a5
@ -166,6 +166,8 @@ class boaddressbook
|
|||||||
'jpegphoto' => false, // gives errors in KAddressbook, maybe the encoding is wrong
|
'jpegphoto' => false, // gives errors in KAddressbook, maybe the encoding is wrong
|
||||||
'photo' => false, // is uncomplete anyway
|
'photo' => false, // is uncomplete anyway
|
||||||
'private' => 'access', // special handling necessary
|
'private' => 'access', // special handling necessary
|
||||||
|
'adr_one_type' => "'Work'", // defines how KAddresbook labels the address
|
||||||
|
'adr_two_type' => "'Home'",
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -249,7 +251,11 @@ class boaddressbook
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if(isset($data[$from]))
|
if ($to{0} == "'") // constant value enclosed in single quotes
|
||||||
|
{
|
||||||
|
$data[$from] = substr($to,1,-1);
|
||||||
|
}
|
||||||
|
elseif(isset($data[$from]))
|
||||||
{
|
{
|
||||||
if ($to) $data[$to] =& $data[$from];
|
if ($to) $data[$to] =& $data[$from];
|
||||||
unset($data[$from]);
|
unset($data[$from]);
|
||||||
|
Loading…
Reference in New Issue
Block a user