Revert "* Finish task #64969."

This reverts commit bacc10ccc0.
This commit is contained in:
dongli
2022-08-19 04:50:57 +00:00
parent bacc10ccc0
commit a68ba64ad8
5 changed files with 9 additions and 37 deletions
+1 -11
View File
@@ -52,8 +52,6 @@ class action extends control
public function trash($browseType = 'all', $type = 'all', $byQuery = false, $queryID = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
{
$this->loadModel('backup');
$this->app->loadLang('execution');
$this->app->loadLang('project');
/* Save session. */
$uri = $this->app->getURI(true);
@@ -117,15 +115,6 @@ class action extends control
$preferredType = $preferredType + $toPreferredType;
}
/* Get the project name of executions. */
if($browseType == 'execution')
{
$executionIdList = array();
foreach($trashes as $trash) $executionIdList[] = $trash->objectID;
$projectPairs = $this->loadModel('project')->getProjectName($executionIdList);
$this->view->projectPairs = $projectPairs;
}
/* Title and position. */
$this->view->title = $this->lang->action->trash;
$this->view->position[] = $this->lang->action->trash;
@@ -141,6 +130,7 @@ class action extends control
$this->view->preferredTypeConfig = $preferredTypeConfig;
$this->view->byQuery = $byQuery;
$this->view->queryID = $queryID;
$this->display();
}