From 9d4900b30ef28afe063379afb2dfcd313b879ab2 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Sat, 20 Feb 2021 11:19:22 +0800 Subject: [PATCH] * Finish task #36014. --- module/custom/control.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/custom/control.php b/module/custom/control.php index 3cb9e1100f..002f401876 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -507,8 +507,13 @@ class custom extends control $lang = $this->app->getClientLang(); $this->custom->deleteItems("lang=$lang§ion=URSRList&key=$key"); + $defaultConcept = $this->dao->select('`value`')->from(TABLE_CONFIG) + ->where('module')->eq('custom') + ->andWhere('`key`')->eq('URSR') + ->fetch('value'); + $this->dao->update(TABLE_CONFIG) - ->set('`value`')->eq($this->config->URSR) + ->set('`value`')->eq($defaultConcept) ->where('module')->eq('common') ->andWhere('`key`')->eq('URSR') ->andWhere('`value`')->eq($key)