* Change the team name at the time of creation execution.
This commit is contained in:
@@ -27,3 +27,4 @@
|
||||
|
||||
#whitelistBox .checkbox-inline, #whitelistBox .radio-inline {margin-left: 10px; display: inline-block; padding-left: 0px; padding-right: 10px;}
|
||||
.main-table > .table-responsive {padding: 0 1px; background: #fff;}
|
||||
#teams_chosen ul li:first-child {max-width:256px; display: inline-block; vertical-align: middle;}
|
||||
|
||||
@@ -46,7 +46,7 @@ $(function()
|
||||
|
||||
$('#teams_chosen').click(function()
|
||||
{
|
||||
if(systemMode == 'new') $('#teams_chosen ul li:first').append(' <label class="label">' + projectCommon + '</label>');
|
||||
if(systemMode == 'new') $('#teams_chosen ul li:first').after(' <label class="label">' + projectCommon + '</label>');
|
||||
})
|
||||
|
||||
$('#teams').change(function()
|
||||
|
||||
@@ -2454,7 +2454,7 @@ class executionModel extends model
|
||||
{
|
||||
if(empty($projectID)) return array();
|
||||
|
||||
$teams = $this->dao->select('id,team,type')->from(TABLE_PROJECT)
|
||||
$teams = $this->dao->select('id,name,type')->from(TABLE_PROJECT)
|
||||
->where('deleted')->eq(0)
|
||||
->andWhere('(project')->eq($projectID)
|
||||
->orWhere('id')->eq($projectID)
|
||||
@@ -2466,10 +2466,10 @@ class executionModel extends model
|
||||
$teamPairs = array();
|
||||
foreach($teams as $id => $team)
|
||||
{
|
||||
if(empty($team->team)) continue;
|
||||
if(empty($team->name)) continue;
|
||||
|
||||
$prefix = ($team->type != 'project' and $this->config->systemMode == 'new') ? ' ' : '';
|
||||
$teamPairs[$id] = $prefix . $team->team;
|
||||
$teamPairs[$id] = $prefix . $team->name;
|
||||
}
|
||||
|
||||
return $teamPairs;
|
||||
|
||||
Reference in New Issue
Block a user