* Export the selected items from post variable instead of from cookie.

This commit is contained in:
liugang
2023-08-31 16:42:57 +08:00
parent 89e1ef0a3e
commit a9c5986f10
9 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -2126,7 +2126,7 @@ class task extends control
if($this->session->taskOnlyCondition)
{
$tasks = $this->dao->select('*')->from(TABLE_TASK)->alias('t1')->where($this->session->taskQueryCondition)
->beginIF($this->post->exportType == 'selected')->andWhere('t1.id')->in($this->cookie->checkedItem)->fi()
->beginIF($this->post->exportType == 'selected')->andWhere('t1.id')->in($this->post->checkedItem)->fi()
->orderBy($sort)->fetchAll('id');
foreach($tasks as $key => $task)
@@ -2149,7 +2149,7 @@ class task extends control
}
elseif($this->session->taskQueryCondition)
{
$stmt = $this->dbh->query($this->session->taskQueryCondition . ($this->post->exportType == 'selected' ? " AND t1.id IN({$this->cookie->checkedItem})" : '') . " ORDER BY " . strtr($orderBy, '_', ' '));
$stmt = $this->dbh->query($this->session->taskQueryCondition . ($this->post->exportType == 'selected' ? " AND t1.id IN({$this->post->checkedItem})" : '') . " ORDER BY " . strtr($orderBy, '_', ' '));
while($row = $stmt->fetch()) $tasks[$row->id] = $row;
}