* Finish task #36014.
This commit is contained in:
@@ -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'");?>
|
||||
|
||||
Reference in New Issue
Block a user