From ba19262b8ba6ca696ee4e4b2877631d15a10f068 Mon Sep 17 00:00:00 2001 From: daitingting Date: Thu, 15 May 2025 09:53:35 +0000 Subject: [PATCH] * [misc] Set client lang. --- module/doc/model.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index ffcacba65b..a9b61ae7fc 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -3979,18 +3979,17 @@ class docModel extends model public function upgradeTemplateTypes() { $currentLang = $this->app->getClientLang(); - $templateTypes = $this->dao->select('`key`,`value`')->from(TABLE_LANG) ->where('module')->eq('baseline') ->andWhere('section')->eq('objectList') - ->andWhere('lang')->in("all,$currentLang") + ->andWhere('lang')->in("all,{$currentLang}") ->fetchPairs(); $usedTemplateTypes = $this->dao->select('`key`, `value`')->from(TABLE_LANG)->alias('t1') ->leftJoin(TABLE_DOC)->alias('t2')->on('t1.key = t2.templateType') ->where('t1.module')->eq('baseline') ->andWhere('t1.section')->eq('objectList') - ->andWhere('t1.lang')->notin("all,$currentLang") + ->andWhere('t1.lang')->notin("all,{$currentLang}") ->andWhere('t2.templateType')->ne('') ->fetchPairs();