Fix bug where extra private cf widgets were read-only

This commit is contained in:
nathangray 2017-04-19 10:44:13 -06:00 committed by Hadi Nategh
parent 88614aa043
commit a3174d58ef

View File

@ -2250,10 +2250,6 @@ window.egw_LAB.wait(function() {
{ {
$content['private_cfs']['#'.$name] = $content['#'.$name]; $content['private_cfs']['#'.$name] = $content['#'.$name];
} }
else if ($cf['private'])
{
$readonlys['private_cfs']['#'.$name] = true;
}
} }
// how to display addresses // how to display addresses
@ -2312,7 +2308,7 @@ window.egw_LAB.wait(function() {
// disable not needed tabs // disable not needed tabs
$readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']); $readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']);
$readonlys['tabs']['custom'] = !$this->customfields || $this->get_backend($content['id'],$content['owner']) == $this->so_accounts; $readonlys['tabs']['custom'] = !$this->customfields || $this->get_backend($content['id'],$content['owner']) == $this->so_accounts;
$readonlys['tabs']['custom_private'] = $readonlys['tabs']['custom'] || !$this->config['private_cf_tab'] ? '__ALL__' : false; $readonlys['tabs']['custom_private'] = $readonlys['tabs']['custom'] || !$this->config['private_cf_tab'];
$readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false; $readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false;
$readonlys['tabs']['history'] = $this->contact_repository != 'sql' || !$content['id'] || $readonlys['tabs']['history'] = $this->contact_repository != 'sql' || !$content['id'] ||
$this->account_repository != 'sql' && $content['account_id']; $this->account_repository != 'sql' && $content['account_id'];