* [bug#51959,done,1h] The configuration during the operational stage does not differentiate between interfaces.
This commit is contained in:
@@ -126,3 +126,6 @@ $config->custom->browseStoryConcept->actionList['delete']['hint'] = $lan
|
||||
$config->custom->browseStoryConcept->actionList['delete']['url'] = array('module' => 'custom', 'method' => 'deleteStoryConcept', 'params' => 'id={key}');
|
||||
$config->custom->browseStoryConcept->actionList['delete']['className'] = 'ajax-submit';
|
||||
$config->custom->browseStoryConcept->actionList['delete']['data-confirm'] = array('message' => $lang->custom->notice->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
|
||||
|
||||
$config->custom->nonInterface = new stdclass();
|
||||
$config->custom->nonInterface->lang = array('epic-stageList', 'requirement-stageList');
|
||||
|
||||
@@ -88,7 +88,11 @@ class customModel extends model
|
||||
$item->value = $value;
|
||||
$item->system = $system;
|
||||
|
||||
if(!$this->app->upgrading) $item->vision = $this->config->vision;
|
||||
if(!$this->app->upgrading)
|
||||
{
|
||||
$item->vision = $this->config->vision;
|
||||
if(in_array("{$item->module}-{$item->section}", $this->config->custom->nonInterface->lang)) $item->vision = 'all';
|
||||
}
|
||||
$this->dao->replace(TABLE_LANG)->data($item)->exec();
|
||||
|
||||
return !dao::isError();
|
||||
@@ -162,7 +166,7 @@ class customModel extends model
|
||||
->beginIF($params['module'])->andWhere('module')->in($params['module'])->fi()
|
||||
->beginIF($params['section'])->andWhere('section')->in($params['section'])->fi()
|
||||
->beginIF($params['key'])->andWhere('`key`')->in($params['key'])->fi()
|
||||
->beginIF($params['vision'])->andWhere('`vision`')->eq($params['vision'])->fi();
|
||||
->beginIF($params['vision'])->andWhere('`vision`')->in('all,' . $params['vision'])->fi();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -53,7 +53,7 @@ class customTao extends customModel
|
||||
|
||||
try
|
||||
{
|
||||
$sql = $this->dao->select('*')->from(TABLE_LANG)->where('`lang`')->in("$currentLang,all")->andWhere('vision')->eq($this->config->vision)->orderBy('lang,id')->get();
|
||||
$sql = $this->dao->select('*')->from(TABLE_LANG)->where('`lang`')->in("$currentLang,all")->andWhere('vision')->in("{$this->config->vision},all")->orderBy('lang,id')->get();
|
||||
$stmt = $this->app->dbQuery($sql);
|
||||
|
||||
$allCustomLang = array();
|
||||
|
||||
Reference in New Issue
Block a user