* adjust the ui.
This commit is contained in:
@@ -52,5 +52,6 @@ $config->bug->search['params']['closedDate'] = array('operator' => '>=',
|
|||||||
$config->bug->search['params']['lastEditedDate']= array('operator' => '>=', 'control' => 'input', 'values' => '');
|
$config->bug->search['params']['lastEditedDate']= array('operator' => '>=', 'control' => 'input', 'values' => '');
|
||||||
$config->bug->search['params']['assignedDate'] = array('operator' => '>=', 'control' => 'input', 'values' => '');
|
$config->bug->search['params']['assignedDate'] = array('operator' => '>=', 'control' => 'input', 'values' => '');
|
||||||
|
|
||||||
$config->bug->create->requiredFields = 'title,openedBuild';
|
$config->bug->create->requiredFields = 'title,openedBuild';
|
||||||
$config->bug->edit->requiredFields = $config->bug->create->requiredFields;
|
$config->bug->edit->requiredFields = $config->bug->create->requiredFields;
|
||||||
|
$config->bug->resolve->requiredFields = 'resolution';
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class bugModel extends model
|
|||||||
|
|
||||||
$this->dao->update(TABLE_BUG)->data($bug)
|
$this->dao->update(TABLE_BUG)->data($bug)
|
||||||
->autoCheck()
|
->autoCheck()
|
||||||
->check('resolution', 'notempty')
|
->batchCheck($this->config->bug->resolve->requiredFields, 'notempty')
|
||||||
->checkIF($bug->resolution == 'duplicate', 'duplicateBug', 'notempty')
|
->checkIF($bug->resolution == 'duplicate', 'duplicateBug', 'notempty')
|
||||||
->where('id')->eq((int)$bugID)
|
->where('id')->eq((int)$bugID)
|
||||||
->exec();
|
->exec();
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ function browseBySearch(active)
|
|||||||
<?php foreach($bugs as $bug):?>
|
<?php foreach($bugs as $bug):?>
|
||||||
<tr class='a-center'>
|
<tr class='a-center'>
|
||||||
<td><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id));?></td>
|
<td><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id));?></td>
|
||||||
<td><?php echo $bug->severity?></td>
|
<td><?php echo $lang->bug->severityList[$bug->severity]?></td>
|
||||||
<td class='a-left nobr'><?php echo $bug->title;?></td>
|
<td class='a-left nobr'><?php echo $bug->title;?></td>
|
||||||
<td><?php echo $users[$bug->openedBy];?></td>
|
<td><?php echo $users[$bug->openedBy];?></td>
|
||||||
<td <?php if($bug->assignedTo == $this->app->user->account) echo 'style=color:red';?>><?php echo $users[$bug->assignedTo];?></td>
|
<td <?php if($bug->assignedTo == $this->app->user->account) echo 'style=color:red';?>><?php echo $users[$bug->assignedTo];?></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user