* Finish task #36014.

This commit is contained in:
holan20180123
2021-02-19 10:23:44 +08:00
parent e3c57cbb2d
commit e624596b49
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -517,6 +517,13 @@ class custom extends control
->andWhere('`key`')->eq('URSR')
->fetch('value');
$this->dao->update(TABLE_CONFIG)
->set('`value`')->eq($defaultConcept)
->where('module')->eq('common')
->andWhere('`key`')->eq('URSR')
->andWhere('`value`')->eq($key)
->exec();
/* Stay default concept. */
if($defaultConcept == $key)
{
@@ -38,7 +38,7 @@
<td class='text-center'><?php echo zget($lang->custom->tipRangeList, $URSR['system'], '');?></td>
<td class='text-center'><?php if($key == $config->custom->URSR) echo "<i class='icon icon-check'></i>";?></td>
<td class='c-actions'>
<?php $disabled = $URSR['system'] ? "disabled=disabled" : '';?>
<?php $disabled = $key == $config->custom->URSR ? "disabled=disabled" : '';?>
<?php if(common::hasPriv('custom', 'setDefaultConcept')) echo html::a($this->createLink('custom', 'setDefaultConcept', "id=$key"), "<i class='icon icon-hand-right'></i>", 'hiddenwin', "class='btn' title={$lang->custom->setDefaultConcept}");?>
<?php if(common::hasPriv('custom', 'editStoryConcept')) echo html::a($this->createLink('custom', 'editStoryConcept', "id=$key", '', true), "<i class='icon icon-edit'></i>", '', "class='btn iframe' title={$lang->edit}");?>
<?php if(common::hasPriv('custom', 'deleteStoryConcept')) echo html::a($this->createLink('custom', 'deleteStoryConcept', "id=$key"), "<i class='icon icon-trash'></i>", 'hiddenwin', "class='btn' $disabled title={$lang->delete} data-group='system'");?>