* Delete useless code.

This commit is contained in:
tianshujie
2022-07-21 09:30:35 +08:00
parent 03f9bca910
commit e0537276bd
4 changed files with 3 additions and 67 deletions
+1 -29
View File
@@ -104,39 +104,11 @@ js::set('isCNLang', !$this->loadModel('common')->checkNotCN())
<thead>
<tr>
<?php
if($isStage)
{
$hasActions = false;
foreach($setting as $key => $value)
{
if($value->id == 'actions')
{
$hasActions = true;
$value->show = true;
}
}
if(!$hasActions)
{
$data = new stdclass();
$data->id = 'actions';
$data->order = $value->order + 1;
$data->show = true;
$data->width = '180px';
$data->fixed = 'right';
$data->title = $lang->actions;
$data->sort = 'no';
$setting[] = $data;
}
}
foreach($setting as $key => $value)
{
if($value->show)
{
if(!$isStage and in_array($value->id, array('percent', 'attribute', 'actions'))) continue;
if(($config->systemMode == 'classic' or ($config->systemMode == 'new' and $this->app->tab != 'execution')) and $value->id == 'project') continue;
if($config->systemMode == 'classic' and $value->id == 'project') continue;
$this->datatable->printHead($value, $orderBy, $vars, $canBatchEdit);
$columns ++;