Настройка полей вопроса и переходов Mantisbt - PullRequest
2 голосов
/ 02 ноября 2011

Я работаю над Mantisbt 1.2.8, я пытаюсь настроить поля, которые отображаются при создании проблемы.до сих пор я мог добавлять поля, но не мог удалить / скрыть поля по умолчанию.Я не смог найти учебник (для DUMMIES, jeje) пошаговое объяснение, где показано:1. как конкретно указать поля при создании проблемы и2. Как определить пользовательское состояние рабочего процесса и переходы.Я бы очень признателен за помощь.

1 Ответ

2 голосов
/ 03 ноября 2011

Вы можете определить поля и состояния / переходы рабочего процесса в файле config_inc.php.

Как описано в config_defaults_inc.php (много полезной информации в этом файле)

/**
* 'status_enum_workflow' defines the workflow, and reflects a simple
*  2-dimensional matrix. For each existing status, you define which
*  statuses you can go to from that status, e.g. from NEW_ you might list statuses
*  '10:new,20:feedback,30:acknowledged' but not higher ones.
* The following example can be transferred to config_inc.php
* $g_status_enum_workflow[NEW_]='20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[FEEDBACK] ='10:new,30:acknowledged,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[ACKNOWLEDGED] ='20:feedback,40:confirmed,50:assigned,80:resolved';
* $g_status_enum_workflow[CONFIRMED] ='20:feedback,50:assigned,80:resolved';
* $g_status_enum_workflow[ASSIGNED] ='20:feedback,80:resolved,90:closed';
* $g_status_enum_workflow[RESOLVED] ='50:assigned,90:closed';
* $g_status_enum_workflow[CLOSED] ='50:assigned';
* @global array $g_status_enum_workflow
*/

и

/**
* An array of the fields to show on the bug report page.
*
* The following fields can not be included:
* id, project, date_submitted, last_updated, status,
* resolution, tags, fixed_in_version, projection, eta,
* reporter.
*
* The following fields must be included:
* category_id, summary, description.
*
* To overload this setting per project, then the settings must be included in the database through
* the generic configuration form.
*
* @global array $g_bug_report_page_fields
*/
...