@@ -161,7 +162,7 @@ - project->manageProductPlan;?> + project->manageProductPlan;?>
@@ -252,7 +253,7 @@ - project->manageProductPlan;?> + project->manageProductPlan;?>
@@ -261,7 +262,7 @@ type != 'normal' and isset($branchGroups[$product->id]);?>
'> product->common;?> - type == 'stage' ? "disabled='disabled'" : '';?> + model == 'waterfall' or $project->model == 'waterfallplus') ? "disabled='disabled'" : '';?> id, "class='form-control chosen' $disabled onchange='loadBranches(this)' data-last='" . $product->id . "' data-type='" . $product->type . "'");?> type == 'stage' and !$project->division) echo html::hidden("products[$i]", $product->id);?>
diff --git a/module/execution/view/view.html.php b/module/execution/view/view.html.php index 1e1232132c..3273c180a6 100644 --- a/module/execution/view/view.html.php +++ b/module/execution/view/view.html.php @@ -345,7 +345,7 @@
- projectInfo->hasProduct or $execution->projectInfo->model == 'scrum'):?> + projectInfo->model, 'waterfall') !== false and (empty($execution->projectInfo->hasProduct) or in_array($execution->attribute, array('request', 'review'))))):?>
execution->linkPlan;?>
diff --git a/module/my/model.php b/module/my/model.php index 89e57f22ea..4a65a3fe4a 100644 --- a/module/my/model.php +++ b/module/my/model.php @@ -571,10 +571,15 @@ class myModel extends model $query = preg_replace('/`(\w+)`/', 't1.`$1`', $query); $query = str_replace('t1.`project`', 't2.`project`', $query); + $assignedToMatches = array(); + $assignedToCondition = ''; + $operatorAndAccount = ''; if(strpos($query, '`assignedTo`') !== false) { - preg_match("/`assignedTo`\s+(([^']*) ('([^']*)'))/", $query, $matches); - $query = str_replace("t1.$matches[0]", "(t1.$matches[0] or (t1.mode = 'multi' and t5.`account` $matches[1] and t1.status != 'closed' and t5.status != 'done') )", $query); + preg_match("/`assignedTo`\s+(([^']*) ('([^']*)'))/", $query, $assignedToMatches); + $assignedToCondition = $assignedToMatches[0]; + $operatorAndAccount = $assignedToMatches[1]; + $query = str_replace("t1.$assignedToMatches[0]", "(t1.$assignedToCondition or (t1.mode = 'multi' and t5.`account` $operatorAndAccount and t1.status != 'closed' and t5.status != 'done') )", $query); } $orderBy = str_replace('pri_', 'priOrder_', $orderBy); @@ -588,7 +593,10 @@ class myModel extends model ->andWhere('t1.deleted')->eq(0) ->andWhere('t2.deleted')->eq(0) ->andWhere('(t2.status')->ne('suspended')->orWhere('t4.status')->ne('suspended')->markRight(1) - ->beginIF($moduleName == 'workTask')->andWhere("(t1.$matches[0] or (t1.mode = 'multi' and t5.`account` $matches[1] and t1.status != 'closed' and t5.status != 'done') )")->fi() + ->beginIF($moduleName == 'workTask') + ->beginIF(!empty($assignedToMatches))->andWhere("(t1.$assignedToCondition or (t1.mode = 'multi' and t5.`account` $operatorAndAccount and t1.status != 'closed' and t5.status != 'done') )")->fi() + ->beginIF(empty($assignedToMatches))->andWhere("t1.assignedTo")->eq($account)->fi() + ->fi() ->beginIF($moduleName == 'contributeTask') ->andWhere('t1.openedBy', 1)->eq($account) ->orWhere('t1.closedBy')->eq($account) diff --git a/module/stage/lang/zh-cn.php b/module/stage/lang/zh-cn.php index 74db4344db..a0de0df795 100644 --- a/module/stage/lang/zh-cn.php +++ b/module/stage/lang/zh-cn.php @@ -19,7 +19,7 @@ $lang->stage->view = '阶段详情'; $lang->stage->plusBrowse = '融合瀑布阶段列表'; /* Fields. */ -$lang->stage->id = '编号'; +$lang->stage->id = 'ID'; $lang->stage->name = '阶段名称'; $lang->stage->type = '阶段类型'; $lang->stage->percent = '工作量占比'; diff --git a/www/static/svg/admin-switch.svg b/www/static/svg/admin-switch.svg index 88d99b7b0d..4689088c72 100644 --- a/www/static/svg/admin-switch.svg +++ b/www/static/svg/admin-switch.svg @@ -1,4 +1,4 @@ - - + + diff --git a/www/static/svg/admin-user.svg b/www/static/svg/admin-user.svg index cb1ae851e4..7e57ae999c 100644 --- a/www/static/svg/admin-user.svg +++ b/www/static/svg/admin-user.svg @@ -1,4 +1,4 @@ - - + +