From e226222c2a3be5b8c444ad1d715bedd47f045abc Mon Sep 17 00:00:00 2001 From: acognet Date: Tue, 16 Jun 2020 12:02:51 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03102=20-=20widget=20regression:=20OQL=20?= =?UTF-8?q?syntax=20error=20now=20crash=20the=20page=20instead=20of=20disp?= =?UTF-8?q?laying=20an=20error=20in=20place=20of=20the=20widget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/dashboard.class.inc.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/application/dashboard.class.inc.php b/application/dashboard.class.inc.php index 35b9833e6..322e68e38 100644 --- a/application/dashboard.class.inc.php +++ b/application/dashboard.class.inc.php @@ -1574,9 +1574,16 @@ JS private function GetDashletObjectListAppUserPreferencesPrefix(DashletObjectList $oDashlet, $aExtraParams, $sDashletId) { $sDataTableId = Dashlet::APPUSERPREFERENCES_PREFIX.$sDashletId; - $oFilter = $oDashlet->GetDBSearch($aExtraParams); - $aClassAliases = $oFilter->GetSelectedClasses(); - + $aClassAliases = array(); + try{ + $oFilter = $oDashlet->GetDBSearch($aExtraParams); + $aClassAliases = $oFilter->GetSelectedClasses(); + } + catch (Exception $e) + { + //on error, return default value + return null; + } return DataTableSettings::GetAppUserPreferenceKey($aClassAliases, $sDataTableId); } }