* adjust for kanban in lite.

This commit is contained in:
王怡栋
2022-01-19 13:41:29 +08:00
parent cd3e98322c
commit f8e0c430cd
13 changed files with 290 additions and 61 deletions

View File

@@ -243,7 +243,7 @@ class project extends control
if(!$projectID) $this->locate($this->createLink('project', 'browse'));
setCookie("lastProject", $projectID, $this->config->cookieLife, $this->config->webRoot, '', false, true);
if($project->model == 'kanban')
if($project->model == 'kanban' and $this->config->vision != 'lite')
{
$kanbanList = $this->loadModel('execution')->getList($projectID, 'all', $browseType);
@@ -703,7 +703,7 @@ class project extends control
if(!defined('RUN_MODE') || RUN_MODE != 'api') $projectID = $this->project->saveState((int)$projectID, $this->project->getPairsByProgram());
$project = $this->project->getById($projectID);
if(empty($project) || strpos('scrum,waterfall', $project->model) === false)
if(empty($project) || strpos('scrum,waterfall,kanban', $project->model) === false)
{
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'fail', 'code' => 404, 'message' => '404 Not found'));
die(js::error($this->lang->notFound) . js::locate($this->createLink('project', 'browse')));

View File

@@ -10,7 +10,7 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php if($project->model != 'kanban'):?>
<?php if($project->model != 'kanban' or $config->vision == 'lite'):?>
<?php echo $this->fetch('block', 'dashboard', "module=project&type={$project->model}&projectID={$project->id}");?>
<?php else:?>
<div class='clearfix' id='mainMenu'>