From 5d385455d268da4db640bc2d75e7513f4b037409 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 12 Jan 2023 18:03:46 -0600 Subject: [PATCH] temporary fix for TinyMCE and tabs not loading in KnowledgeBase under 23.1/master Problem is that JavaScript in inline script tags is executed before the egw_ready promise is created fixing it by using window.setTimeout( , 200) for now --- api/src/Db.php | 1 + api/src/Framework.php | 2 +- api/src/Html.php | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api/src/Db.php b/api/src/Db.php index 607335ac4a..a6ece4875f 100644 --- a/api/src/Db.php +++ b/api/src/Db.php @@ -828,6 +828,7 @@ class Db { fwrite($f,'['.(isset($GLOBALS['egw_setup']) ? $GLOBALS['egw_setup']->ConfigDomain : $GLOBALS['egw_info']['user']['domain']).'] '); fwrite($f,date('Y-m-d H:i:s ').$Query_String.($inputarr ? "\n".print_r($inputarr,true) : '')."\n"); + fwrite($f, function_backtrace()."\n"); if (!$rs) { fwrite($f,"*** Error $this->Errno: $this->Error\n".function_backtrace()."\n"); diff --git a/api/src/Framework.php b/api/src/Framework.php index c83ee654e6..663d99bec5 100644 --- a/api/src/Framework.php +++ b/api/src/Framework.php @@ -1046,7 +1046,7 @@ abstract class Framework extends Framework\Extra } // add configuration, link-registry, images, user-data and -preferences for non-popup windows // specifying etag in url to force reload, as we send expires header - if ($GLOBALS['egw_info']['flags']['js_link_registry'] || isset($_GET['cd']) && $_GET['cd'] === 'popup') + if ($GLOBALS['egw_info']['flags']['js_link_registry'] || !isset($_GET['cd']) || isset($_GET['cd']) && $_GET['cd'] === 'popup') { self::includeJS('/api/config.php', array( 'etag' => md5(json_encode(Config::clientConfigs()).Link::json_registry()), diff --git a/api/src/Html.php b/api/src/Html.php index 4e775d7fd3..3689864a40 100644 --- a/api/src/Html.php +++ b/api/src/Html.php @@ -469,7 +469,8 @@ class Html ' '; }