View Issue Details

IDProjectCategoryView StatusLast Update
0025537mantisbtcustomizationpublic2019-03-16 20:21
Reporternegora Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version2.19.0 
Summary0025537: Hidding the "category_id" field prevents to create new a new issue
Description

I've hidden the category_id field in my install (among other fields). But, when I'm going to create a new issue, I get this error:

APPLICATION ERROR #11

A necessary field "category" was empty. Please recheck your inputs.
Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Thanks.

Steps To Reproduce

I'm using the following option in config/config_inc.php:

$g_bug_report_page_fields = array (
  'id',
  'project_id',
  'reporter_id',
  'handler_id',
  'priority',
  'status',
  'date_submitted',
  'last_updated',
  'view_state',
  'summary',
  'due_date',
  'description',
  'additional_information',
  'attachment_count',
  'bugnotes_count',
  'selection',
  'edit',
  'notes',
  'overdue'
);
Additional Information

As a temporary workaround, I've had to edit the file bug_report.php, at line 163, replacing this:

$t_category_id = gpc_get_int( 'category_id', 0 );

With this:

$t_category_id = 1;
TagsNo tags attached.

Activities

dregad

dregad

2019-03-01 05:52

developer   ~0061608

@negora it would probably be better to set $g_allow_no_category = ON;

negora

negora

2019-03-01 06:39

reporter   ~0061609

@dregad Thank you. I couldn't find that option in the documentation. I've just tested it and works fine ;) .

Definitively, It's a better workaround than editing the source code directly.

dregad

dregad

2019-03-01 06:53

developer   ~0061610

negora,

This is not a bug or feature request for MantisBT (you are asking for help on how to configure the system). I am therefore resolving this issue as "no change required".

Please use the forums to get support on customizing and using MantisBT (refer to http://www.mantisbt.org/support.php for links and further details).

negora

negora

2019-03-01 07:46

reporter   ~0061611

Last edited: 2019-03-01 07:46

@dregad My apologizes. I thought that it was an actual bug. The next time, I'll ask in the forums first. Thanks.