mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
* Addressbook: fixed empty edit popup, if contact contains photo and changing of private custom-fields in extra private tab
This commit is contained in:
parent
92fddc9c51
commit
beb31eaf48
@ -1723,7 +1723,7 @@ window.egw_LAB.wait(function() {
|
|||||||
$content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p');
|
$content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p');
|
||||||
$content['owner'] = (string) (int) $content['owner'];
|
$content['owner'] = (string) (int) $content['owner'];
|
||||||
$content['cat_id'] = $this->config['cat_tab'] === 'Tree' ? $content['cat_id_tree'] : $content['cat_id'];
|
$content['cat_id'] = $this->config['cat_tab'] === 'Tree' ? $content['cat_id_tree'] : $content['cat_id'];
|
||||||
$content += (array)$content['private_cfs'];
|
if ($this->config['private_cf_tab']) $content = (array)$content['private_cfs'] + $content;
|
||||||
unset($content['private_cfs']);
|
unset($content['private_cfs']);
|
||||||
|
|
||||||
switch($button)
|
switch($button)
|
||||||
@ -2063,8 +2063,17 @@ window.egw_LAB.wait(function() {
|
|||||||
$content['cat_id_tree'] = $content['cat_id'];
|
$content['cat_id_tree'] = $content['cat_id'];
|
||||||
|
|
||||||
// Avoid setting conflicts with private custom fields
|
// Avoid setting conflicts with private custom fields
|
||||||
$content['private_cfs'] = $content;
|
if ($this->config['private_cf_tab'])
|
||||||
|
{
|
||||||
|
$content['private_cfs'] = array();
|
||||||
|
foreach(config::get_customfields('addressbook', true) as $name => $cf)
|
||||||
|
{
|
||||||
|
if ($cf['private'] && isset($content['#'.$name]))
|
||||||
|
{
|
||||||
|
$content['private_cfs']['#'.$name] = $content['#'.$name];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// how to display addresses
|
// how to display addresses
|
||||||
$content['addr_format'] = $this->addr_format_by_country($content['adr_one_countryname']);
|
$content['addr_format'] = $this->addr_format_by_country($content['adr_one_countryname']);
|
||||||
$content['addr_format2'] = $this->addr_format_by_country($content['adr_two_countryname']);
|
$content['addr_format2'] = $this->addr_format_by_country($content['adr_two_countryname']);
|
||||||
|
Loading…
Reference in New Issue
Block a user