This commit is contained in:
王怡栋
2021-09-10 08:54:40 +08:00
69 changed files with 782 additions and 306 deletions
+11 -3
View File
@@ -69,7 +69,7 @@ class program extends control
/**
* Program kanban list.
*
*
* @access public
* @return void
*/
@@ -79,7 +79,7 @@ class program extends control
$this->app->session->set('projectList', $this->app->getURI(true), 'project');
$this->view->title = $this->lang->program->kanban->common;
$this->view->kanbanGroup = $this->program->getKanbanGroup();
$this->view->kanbanGroup = array_filter($this->program->getKanbanGroup());
$this->display();
}
@@ -97,7 +97,15 @@ class program extends control
*/
public function product($programID = 0, $browseType = 'noclosed', $orderBy = 'order_desc', $recTotal = 0, $recPerPage = 15, $pageID = 1)
{
$programID = $this->program->saveState($programID, $this->program->getPairs());
$programPairs = $this->program->getPairs();
if(defined('RUN_MODE') && RUN_MODE == 'api' && !isset($programPairs[$programID]))
{
return $this->send(array('status' => 'fail', 'code' => 404, 'message' => '404 Not found'));
}
$programID = $this->program->saveState($programID, $programPairs);
setCookie("lastProgram", $programID, $this->config->cookieLife, $this->config->webRoot, '', false, true);
$this->program->setMenu($programID);
+1 -1
View File
@@ -13,7 +13,7 @@
<?php include '../../common/view/kanban.html.php';?>
<?php if(empty($kanbanGroup)):?>
<div class="table-empty-tip cell">
<p class="text-muted"><?php echo $lang->noData;?></p>
<p class="text-muted"><?php echo $lang->program->noProgram;?></p>
</div>
<?php else:?>
<div id='kanbanList'>