* Api: If addressbook event column is disabled, disable next / last dates in edit dialog as well.

This commit is contained in:
nathangray 2020-03-24 09:42:10 -06:00
parent 50f7bdb112
commit 6aec7858cc

View File

@ -1672,7 +1672,12 @@ class Contacts extends Contacts\Storage
*/
function read_calendar($uids,$extra_title=true)
{
if (!$GLOBALS['egw_info']['user']['apps']['calendar']) return array();
if (!$GLOBALS['egw_info']['user']['apps']['calendar'] ||
$GLOBALS['egw_info']['server']['disable_event_column'] == 'True'
)
{
return array();
}
$split_uids = array();
$events = array();