Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms into tsj_fixbug
This commit is contained in:
@@ -65,7 +65,7 @@ $config->action->majorList['project'] = array('opened', 'edited');
|
||||
$config->action->majorList['execution'] = array('opened', 'edited');
|
||||
|
||||
$config->action->needGetProjectType = 'build,task,bug,case,testcase,caselib,testtask,testsuite,testreport,doc,issue,release,risk,design,opportunity,trainplan,gapanalysis,researchplan,researchreport,';
|
||||
$config->action->needGetRelateField = ',story,productplan,release,task,build,bug,testcase,case,testtask,testreport,doc,doclib,issue,risk,opportunity,trainplan,gapanalysis,team,whitelist,researchplan,researchreport,meeting,kanbanlane,kanbancolumn,module,review,';
|
||||
$config->action->needGetRelateField = ',branch,story,productplan,release,task,build,bug,testcase,case,testtask,testreport,doc,doclib,issue,risk,opportunity,trainplan,gapanalysis,team,whitelist,researchplan,researchreport,meeting,kanbanlane,kanbancolumn,module,review,';
|
||||
$config->action->noLinkModules = ',doclib,module,webhook,gitlab,gitea,gogs,sonarqube,pipeline,jenkins,kanban,kanbanspace,kanbancolumn,kanbanlane,kanbanregion,kanbancard,execution,project,traincategory,apistruct,program,product,user,entry,repo,';
|
||||
$config->action->ignoreObjectType4Dynamic = 'kanbanregion,kanbanlane,kanbancolumn';
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ th.c-confirmed {text-align: center;}
|
||||
.c-severity {overflow: hidden; white-space: nowrap;}
|
||||
.c-keywords {overflow: hidden; white-space: nowrap;}
|
||||
.c-id {text-overflow: ellipsis; white-space: nowrap;}
|
||||
.c-toTask {overflow: hidden; white-space: nowrap;}
|
||||
|
||||
.body-modal #mainMenu>.btn-toolbar {width: auto;}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->caselib->desc;?></th>
|
||||
<td><?php echo html::textarea('desc', '', "rows=10 class='form-control'");?></td>
|
||||
<td><?php echo html::textarea('desc', '', "rows=10 class='form-control kindeditor'");?></td>
|
||||
</tr>
|
||||
<?php $this->printExtendFields('', 'table');?>
|
||||
<tr>
|
||||
|
||||
@@ -418,6 +418,7 @@ class devModel extends model
|
||||
$originalLangs['SRCommon'] = $this->lang->dev->SR;
|
||||
|
||||
$URSRList = $this->loadModel('custom')->getItems("lang={$language}&module=custom§ion=URSRList&key={$this->config->custom->URSR}&vision={$this->config->vision}");
|
||||
if(empty($URSRList)) $URSRList = $this->custom->getItems("lang={$language}&module=custom§ion=URSRList&vision={$this->config->vision}");
|
||||
$URSRList = array_shift($URSRList);
|
||||
if($URSRList)
|
||||
{
|
||||
@@ -505,6 +506,7 @@ class devModel extends model
|
||||
$customedLangs['URCommon'] = $this->lang->dev->UR == $this->lang->URCommon ? '' : $this->lang->URCommon;
|
||||
$customedLangs['SRCommon'] = $this->lang->dev->SR == $this->lang->SRCommon ? '' : $this->lang->SRCommon;
|
||||
$URSRList = $this->custom->getItems("lang={$language}&module=custom§ion=URSRList&key={$this->config->custom->URSR}&vision={$this->config->vision}");
|
||||
if(empty($URSRList)) $URSRList = $this->custom->getItems("lang={$language}&module=custom§ion=URSRList&vision={$this->config->vision}");
|
||||
$URSRList = array_shift($URSRList);
|
||||
if($URSRList)
|
||||
{
|
||||
@@ -1040,7 +1042,12 @@ class devModel extends model
|
||||
$_POST = array();
|
||||
|
||||
$oldValue = $this->dao->select('*')->from(TABLE_LANG)->where('`key`')->eq($this->config->custom->URSR)->andWhere('section')->eq('URSRList')->andWhere('lang')->eq($language)->andWhere('module')->eq('custom')->fetch('value');
|
||||
$oldValue = json_decode($oldValue);
|
||||
$URSRList = $this->loadModel('custom')->getItems("lang={$language}&module=custom§ion=URSRList&key={$this->config->custom->URSR}&vision={$this->config->vision}");
|
||||
if(empty($URSRList)) $URSRList = $this->custom->getItems("lang={$language}&module=custom§ion=URSRList&vision={$this->config->vision}");
|
||||
$URSRList = array_shift($URSRList);
|
||||
|
||||
$this->config->custom->URSR = $URSRList->key;
|
||||
$oldValue = json_decode($URSRList->value);
|
||||
|
||||
$_POST['SRName'] = !empty($post['common_SRCommon']) ? $post['common_SRCommon'] : zget($oldValue, 'defaultSRName', $oldValue->SRName);
|
||||
$_POST['URName'] = !empty($post['common_URCommon']) ? $post['common_URCommon'] : zget($oldValue, 'defaultURName', $oldValue->URName);
|
||||
|
||||
@@ -236,8 +236,7 @@ class doc extends control
|
||||
|
||||
$response['message'] = $this->lang->saveSuccess;
|
||||
$response['result'] = 'success';
|
||||
$response['closeModal'] = true;
|
||||
$response['callback'] = "redirectParentWindow($hasLibPriv, $libID, $objectID)";
|
||||
$response['locate'] = 'parent';
|
||||
return $this->send($response);
|
||||
}
|
||||
|
||||
|
||||
@@ -1311,6 +1311,27 @@ class executionModel extends model
|
||||
unset($execution->end);
|
||||
}
|
||||
|
||||
if($this->post->readjustTime && $oldExecution->grade > 1)
|
||||
{
|
||||
$parent = $this->getByID($oldExecution->parent);
|
||||
$begin = $execution->begin;
|
||||
$end = $execution->end;
|
||||
$parentBegin = $parent->begin;
|
||||
$parentEnd = $parent->end;
|
||||
|
||||
if($begin < $parentBegin)
|
||||
{
|
||||
dao::$errors["message"][] = sprintf($this->lang->execution->errorLetterParent, $parentBegin);
|
||||
}
|
||||
|
||||
if($end > $parentEnd)
|
||||
{
|
||||
dao::$errors["message"][] = sprintf($this->lang->execution->errorGreaterParent, $parentEnd);
|
||||
}
|
||||
}
|
||||
|
||||
if(dao::isError()) return false;
|
||||
|
||||
$execution = $this->loadModel('file')->processImgURL($execution, $this->config->execution->editor->activate['id'], $this->post->uid);
|
||||
$this->dao->update(TABLE_EXECUTION)->data($execution)
|
||||
->autoCheck()
|
||||
|
||||
+7
-5
@@ -1112,11 +1112,12 @@ class myModel extends model
|
||||
{
|
||||
if($checkExists) return true;
|
||||
$story = new stdclass();
|
||||
$story->id = $data->id;
|
||||
$story->title = $data->title;
|
||||
$story->type = 'story';
|
||||
$story->time = $data->openedDate;
|
||||
$story->status = $data->status;
|
||||
$story->id = $data->id;
|
||||
$story->title = $data->title;
|
||||
$story->type = 'story';
|
||||
$story->storyType = $data->type;
|
||||
$story->time = $data->openedDate;
|
||||
$story->status = $data->status;
|
||||
$stories[$story->id] = $story;
|
||||
}
|
||||
|
||||
@@ -1435,6 +1436,7 @@ class myModel extends model
|
||||
$review->status = $objectType == 'attend' ? $object->reviewStatus : ((isset($object->status) and !isset($flows[$objectType])) ? $object->status : 'done');
|
||||
if(strpos($review->result, ',') !== false) list($review->result) = explode(',', $review->result);
|
||||
|
||||
if($objectType == 'story') $review->storyType = $object->type;
|
||||
if($review->type == 'review') $review->type = 'projectreview';
|
||||
if($review->type == 'case') $review->type = 'testcase';
|
||||
$review->title = '';
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
$typeName = '';
|
||||
if(isset($lang->{$review->type}->common)) $typeName = $lang->{$review->type}->common;
|
||||
if($type == 'story') $typeName = $lang->SRCommon;
|
||||
if($type == 'story') $typeName = $review->storyType == 'story' ? $lang->SRCommon : $lang->URCommon;
|
||||
if($review->type == 'projectreview') $typeName = $lang->project->common;
|
||||
if(isset($flows[$review->type])) $typeName = $flows[$review->type];
|
||||
|
||||
|
||||
@@ -190,6 +190,7 @@ class taskModel extends model
|
||||
if($bugID > 0)
|
||||
{
|
||||
$this->dao->update(TABLE_TASK)->set('fromBug')->eq($bugID)->where('id')->eq($taskID)->exec();
|
||||
$this->dao->update(TABLE_BUG)->set('toTask')->eq($taskID)->where('id')->eq($bugID)->exec();
|
||||
$this->loadModel('action')->create('bug', $bugID, 'converttotask', '', $taskID);
|
||||
}
|
||||
|
||||
|
||||
@@ -405,18 +405,6 @@ $config->delete['17_8'][] = 'extension/max/common/ext/lang/fr/crystal.php';
|
||||
$config->delete['17_8'][] = 'extension/max/common/ext/lang/vi/crystal.php';
|
||||
$config->delete['18_0'][] = 'extension/max/custom/ext/view/mode.zentaomax.html.hook.php';
|
||||
$config->delete['18_0'][] = 'extension/max/my/ext/view/audit.html.php';
|
||||
$config->delete['18_0'][] = 'extension/biz/common/ext/lang/de/report.php';
|
||||
$config->delete['18_0'][] = 'extension/biz/common/ext/lang/en/report.php';
|
||||
$config->delete['18_0'][] = 'extension/biz/common/ext/lang/fr/report.php';
|
||||
$config->delete['18_0'][] = 'extension/biz/common/ext/lang/vi/report.php';
|
||||
$config->delete['18_0'][] = 'extension/biz/common/ext/lang/zh-cn/report.php';
|
||||
$config->delete['18_0'][] = 'extension/biz/common/ext/lang/zh-tw/report.php';
|
||||
$config->delete['18_0'][] = 'extension/max/common/ext/lang/de/report.php';
|
||||
$config->delete['18_0'][] = 'extension/max/common/ext/lang/en/report.php';
|
||||
$config->delete['18_0'][] = 'extension/max/common/ext/lang/fr/report.php';
|
||||
$config->delete['18_0'][] = 'extension/max/common/ext/lang/vi/report.php';
|
||||
$config->delete['18_0'][] = 'extension/max/common/ext/lang/zh-cn/report.php';
|
||||
$config->delete['18_0'][] = 'extension/max/common/ext/lang/zh-tw/report.php';
|
||||
$config->delete['18_0'][] = 'extension/max/block/ext/config/zentaomax.php';
|
||||
$config->delete['18_0'][] = 'extension/biz/repo/ext/control/ajaxgetcommitinfo.php';
|
||||
$config->delete['18_0'][] = 'extension/biz/repo/ext/control/ajaxgetbranchesandtags.php';
|
||||
|
||||
+10
-4
@@ -31,7 +31,7 @@
|
||||
{
|
||||
if(config.currentMethod.indexOf(skipMethods[i]) === 0) return;
|
||||
};
|
||||
var $messager;
|
||||
var $messager = '';
|
||||
|
||||
setTimeout(function()
|
||||
{
|
||||
@@ -43,7 +43,7 @@
|
||||
if($(form).attr('target') == 'hiddenwin')
|
||||
{
|
||||
var needSkip = true;
|
||||
var keepModules = ['program', 'product', 'project', 'testcase'];
|
||||
var keepModules = ['program', 'product', 'project', 'testcase', 'execution', 'caselib'];
|
||||
for(var i = 0; i < keepModules.length; i++)
|
||||
{
|
||||
if(needSkip && config.currentModule.indexOf(keepModules[i]) === 0) needSkip = false;
|
||||
@@ -62,7 +62,7 @@
|
||||
if(formDataStored && formDataStored.length)
|
||||
{
|
||||
message = lang.confirmDraft.replace('%name%', lang[config.currentModule] ? lang[config.currentModule] : '');
|
||||
$messager = new $.zui.Messager(message, {
|
||||
$messager = new $.zui.Messager(message, {
|
||||
close: true,
|
||||
type: 'info',
|
||||
placement: 'top',
|
||||
@@ -135,7 +135,13 @@
|
||||
{
|
||||
KindEditor.remove('#' + item.name);
|
||||
formItem.val(item.value);
|
||||
$(formItem).kindeditor();
|
||||
$(formItem).kindeditor(
|
||||
{
|
||||
afterChange: function()
|
||||
{
|
||||
$(formItem).closest('.main-form').trigger('change');
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user