* Adjust the all method of the project module.

This commit is contained in:
leiyong
2020-10-23 11:26:07 +08:00
parent 6f25acbb87
commit baddd03444
7 changed files with 135 additions and 10 deletions
+3 -2
View File
@@ -2332,11 +2332,11 @@ class project extends control
return $this->send(array('result' => 'fail'));
}
$orders = $this->post->projects;
$idList = array_keys($orders);
$idList = explode(',', $this->post->projects);
$projects = $this->dao->select('id, `order`')->from(TABLE_PROJECT)
->where('id')->in($idList)
->fetchPairs('id', 'order');
foreach($projects as $id => $order)
{
$newOrder = $orders[$id];
@@ -2387,6 +2387,7 @@ class project extends control
public function all($status = 'undone', $projectID = 0, $orderBy = 'order_desc', $productID = 0, $recTotal = 0, $recPerPage = 10, $pageID = 1)
{
$this->app->loadLang('my');
$this->app->loadLang('programplan');
if($this->projects)
{
$project = $this->commonAction($projectID);