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)