Merge branch 'master' of github.com:easysoft/zentaopms

This commit is contained in:
z
2020-08-06 17:22:21 +08:00
12 changed files with 32 additions and 16 deletions
+1 -1
View File
@@ -982,7 +982,7 @@ class bug extends control
}
$this->loadModel('score')->create('ajax', 'batchOther');
}
if($type == 'product') die(js::locate($this->createLink('bug', 'browse', "productID=$projectID"), 'parent'));
if($type == 'product') die(js::locate($this->session->bugList, 'parent'));
if($type == 'my') die(js::locate($this->createLink('my', 'bug')));
die(js::locate($this->createLink('project', 'bug', "projectID=$projectID")));
}
+1
View File
@@ -195,6 +195,7 @@ js::set('flow', $config->global->flow);
}
$priList = $lang->bug->priList;
if(end($priList)) unset($priList[0]);
if(!isset($priList[$pri])) $pri = reset($priList);
?>
<?php if($hasCustomPri):?>
<?php echo html::select('pri', (array)$priList, $pri, "class='form-control'");?>
+1
View File
@@ -91,6 +91,7 @@
}
$priList = $lang->testcase->priList;
if(end($priList)) unset($priList[0]);
if(!isset($priList[$pri])) $pri = reset($priList);
?>
<?php if($hasCustomPri):?>
<?php echo html::select('pri', (array)$priList, $pri, "class='form-control'");?>
+1
View File
@@ -287,6 +287,7 @@ class custom extends control
/* Get this module requiredFields. */
$this->loadModel($moduleName);
if($moduleName == 'user') $this->app->loadModuleConfig($moduleName);
$requiredFields = $this->custom->getRequiredFields($this->config->$moduleName);
if($moduleName == 'doc')
+1 -1
View File
@@ -994,7 +994,7 @@ class productModel extends model
$allCount = 0;
foreach($stories as $key => $story)
{
if($story->type != $storyType) continue;
if(!empty($story->type) && $story->type != $storyType) continue;
$totalEstimate += $story->estimate;
/* When the status is not closed or closedReason is done or postponed then add cases rate..*/
+2 -2
View File
@@ -341,7 +341,7 @@
</div>
</div>
<?php endif;?>
<div class='text'><?php echo $summary;?></div>
<div class='table-statistic'><?php echo $summary;?></div>
<?php
$this->app->rawParams['type'] = 'story';
$storyPager->show('right', 'pagerjs');
@@ -420,7 +420,7 @@
<?php echo html::submitButton($lang->productplan->batchUnlink, '', 'btn');?>
</div>
<?php endif;?>
<div class='text'><?php echo sprintf($lang->productplan->bugSummary, count($planBugs));?></div>
<div class='table-statistic'><?php echo sprintf($lang->productplan->bugSummary, count($planBugs));?></div>
<?php
$this->app->rawParams['type'] = 'bug';
$bugPager->show('right', 'pagerjs');
+1
View File
@@ -133,6 +133,7 @@
$priList = $lang->story->priList;
if(end($priList)) unset($priList[0]);
if(!isset($priList[$pri])) $pri = reset($priList);
?>
<?php if($hasCustomPri):?>
<?php echo html::select('pri', (array)$priList, $pri, "class='form-control'");?>
+1 -1
View File
@@ -43,7 +43,7 @@ class task extends control
* @access public
* @return void
*/
public function create($projectID = 0, $storyID = 0, $moduleID = 0, $taskID = 0, $todoID = 0)
public function create($projectID = 0, $storyID = '', $moduleID = 0, $taskID = 0, $todoID = 0)
{
$this->project->getLimitedProject();
$limitedProjects = !empty($_SESSION['limitedProjects']) ? $_SESSION['limitedProjects'] : '';
+1
View File
@@ -163,6 +163,7 @@
}
$priList = $lang->task->priList;
if(end($priList)) unset($priList[0]);
if(!isset($priList[$task->pri])) $task->pri = reset($priList);
?>
<?php if($hasCustomPri):?>
<?php echo html::select('pri', (array)$priList, $task->pri, "class='form-control'");?>
+1
View File
@@ -108,6 +108,7 @@
}
$priList = $lang->testcase->priList;
if(end($priList)) unset($priList[0]);
if(!isset($priList[$pri])) $pri = reset($priList);
?>
<?php if($hasCustomPri):?>
<?php echo html::select('pri', (array)$priList, $pri, "class='form-control'");?>
+16 -6
View File
@@ -329,9 +329,19 @@ function ajaxDelete(url, replaceID, notice)
{
if(data.result == 'success')
{
var $table = $('#' + replaceID).closest('[data-ride="table"]');
if($table.length)
{
var table = $table.data('zui.table');
if(table)
{
table.options.replaceId = replaceID;
return table.reload();
}
}
$.get(document.location.href, function(data)
{
if(!($(data).find('#' + replaceID).length))location.reload();
if(!($(data).find('#' + replaceID).length)) location.reload();
$('#' + replaceID).html($(data).find('#' + replaceID).html());
if(typeof sortTable == 'function') sortTable();
$('#' + replaceID).find('[data-toggle=modal], a.iframe').modalTrigger();
@@ -715,11 +725,11 @@ function bootAlert(message)
/**
* Toggle fold or unfold for parent.
*
* @param string $form
* @param array $unfoldIdList
* @param int $objectID
* @param string $objectType
*
* @param string $form
* @param array $unfoldIdList
* @param int $objectID
* @param string $objectType
* @access public
* @return void
*/
+5 -5
View File
File diff suppressed because one or more lines are too long