diff --git a/module/bug/config.php b/module/bug/config.php index bd7de7f9b0..4e59a0a0e0 100644 --- a/module/bug/config.php +++ b/module/bug/config.php @@ -38,6 +38,11 @@ $config->bug->list->exportFields = 'id, product, module, project, story, task, lastEditedBy, lastEditedDate, files'; +$config->bug->list->customCreateFields = 'project,story,task,os,browser,mailto,keywords'; + +$config->bug->custom = new stdclass(); +$config->bug->custom->create = $config->bug->list->customCreateFields; + $config->bug->editor = new stdclass(); $config->bug->editor->create = array('id' => 'steps', 'tools' => 'bugTools'); $config->bug->editor->edit = array('id' => 'steps,comment', 'tools' => 'bugTools'); diff --git a/module/bug/control.php b/module/bug/control.php index dc88c884b7..59d8f46bd2 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -297,6 +297,11 @@ class bug extends control $projectMembers = $this->view->users; } + /* Set custom. */ + foreach(explode(',', $this->config->bug->list->customCreateFields) as $field) $customFields[$field] = $this->lang->bug->$field; + $this->view->customFields = $customFields; + $this->view->showFields = $this->config->bug->custom->create; + $this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->create; $this->view->position[] = html::a($this->createLink('bug', 'browse', "productID=$productID"), $this->products[$productID]); $this->view->position[] = $this->lang->bug->create; diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 0d80b6659a..648f883de6 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -26,6 +26,9 @@ js::set('refresh', $lang->refresh); icons['bug']);?> icons['create']);?> bug->create;?> +
+ +
@@ -55,12 +58,17 @@ js::set('refresh', $lang->refresh); + - + + + + + @@ -149,20 +163,39 @@ js::set('refresh', $lang->refresh); + + - + + + + + + + + + - + + - + + @@ -222,4 +261,6 @@ js::set('refresh', $lang->refresh); bug->module);?> +createLink('custom', 'ajaxSaveCustom', 'module=bug§ion=custom&key=create');?> +
bug->project;?>bug->project : $lang->bug->openedBuild;?>
+ bug->openedBuild?> + ', "class='btn btn-default' data-toggle='tooltip' onclick='loadAllBuilds()' title='{$lang->bug->allBuilds}'")?> @@ -76,6 +84,8 @@ js::set('refresh', $lang->refresh);
bug->type;?> @@ -87,10 +97,14 @@ js::set('refresh', $lang->refresh); unset($lang->bug->typeList['trackthings']); echo html::select('type', $lang->bug->typeList, $type, "class='form-control'"); ?> + bug->os?> bug->osList, $os, "class='form-control'");?> + + bug->browser?> bug->browserList, $browser, "class='form-control'");?> +
bug->story;?>bug->story : $lang->bug->task;?>
+ bug->task?> +
bug->lblMailto;?>bug->lblMailto : $lang->bug->keywords;?>
refresh); ?>
+ + + >
+ bug->keywords;?> +
bug->files;?> fetch('file', 'buildform', 'fileCount=1&percent=0.85');?>