Fix custom fields tab not showing up in calendar edit dialog

This commit is contained in:
Hadi Nategh 2014-07-09 09:35:22 +00:00
parent f151190d64
commit e47011657c

View File

@ -1544,7 +1544,7 @@ class calendar_uiforms extends calendar_ui
} }
// disabling the custom fields tab, if there are none // disabling the custom fields tab, if there are none
$readonlys['tabs'] = array( $readonlys['tabs'] = array(
'custom' => !count($this->bo->config['customfields']), 'custom' => !count($this->bo->customfields),
'participants' => $this->accountsel->account_selection == 'none', 'participants' => $this->accountsel->account_selection == 'none',
'history' => !$event['id'], 'history' => !$event['id'],
'alarms' => $readonlys['tabs']['alarms'], 'alarms' => $readonlys['tabs']['alarms'],