From a4bfe9ae6b00b7e8d6bdf9c7e102ad0cc04cf01d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 19 Nov 2020 15:39:13 +0100 Subject: [PATCH] Disable videoconference field in calendar edit dialog if it's not active --- calendar/inc/class.calendar_uiforms.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 9a293679fd..538a54afd6 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -2024,10 +2024,7 @@ class calendar_uiforms extends calendar_ui if (!empty($preserved['lock_token'])) $content['lock_token'] = $preserved['lock_token']; //Disable videoconference if the module is not enabled - if ($GLOBALS['egw_info']['user']['apps']['status'] && EGroupware\Status\Hooks::isVideoconferenceDisabled()) - { - $readonlys['videoconference'] = true; - } + $etpl->disableElement('videoconference', $GLOBALS['egw_info']['user']['apps']['status'] && EGroupware\Status\Hooks::isVideoconferenceDisabled()); // non_interactive==true from $_GET calls immediate save action without displaying the edit form if(isset($_GET['non_interactive']) && (bool)$_GET['non_interactive'] === true)