View Issue Details

IDProjectCategoryView StatusLast Update
0017804mantisbtbugtrackerpublic2015-01-15 16:18
Reportermikemol Assigned Toatrol  
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.2.17 
Summary0017804: New issues getting status of @50@, cannot be set to existing status
Description

Immediately upon installation of Mantis, I removed Mantis's default status set and added my own. When I create issues as anything other than the Admin account, their status is set to @50@, rather than one of the statuses I've defined. If I try to edit the status, I only have @50@ and @90@ available in the dropdown.

Steps To Reproduce

1) Install Mantis
2) $g_status_enum_string = '1:todo,2:inprocess,3:toverify,4:done';
3) $g_create_project_threshold = MANAGER;
4) Manage->Manage Configuration
4a) set_status_threshold = array ( 1 => 25, 2 => 55, 3 => 55, 4 => 55, )
4b) status_enum_workflow = array ( 1 => '2:inprocess,3:toverify', 2 => '3:toverify,1:todo', 3 => '2:inprocess,1:todo,4:done', 4 => '2:inprocess,1:todo,3:toverify', )
4c) bug_assigned_status = 1
4d) bug_readonly_status_threshold = 1
4e) bug_reopen_status = 1
4f) bug_resolved_status_threshold = 1
5) Create an account, make it a 'manager'.
6) Create a project as that manager.
7) Log in as that manager
8) Create an issue under that project

That issue will have a status of @50@.

Additional Information

I say "Have not tried", because I haven't tried a reinstallation of Mantis.

TagsNo tags attached.
Attached Files
mantis_workflow.png (145,840 bytes)   
mantis_workflow.png (145,840 bytes)   

Activities

thraxisp

thraxisp

2014-10-24 22:36

reporter   ~0041649

You need to define strings to match the enumerations too.

Reference http://www.mantisbt.org/docs/master-1.2.x/en/administration_guide.html#ADMIN.CUSTOMIZE.ENUMS

mikemol

mikemol

2014-10-27 12:39

reporter   ~0041679

I left out the string enumerations for brevity, sorry. Here they are:

<?php
switch( $g_active_langauge ) {
default:
$s_status_enum_string = '1:todo,2:inprocess,3:toverify,4:done';

            $s_todo_bug_title = 'Mark task as needing to be done.';
            $s_todo_bug_button = 'To do';
            $s_email_notification_title_for_status_bug_todo = 'The following task needs to be done.';

            $s_inprocess_bug_title = 'Mark task in progress';
            $s_inprocess_bug_button = 'In progress';
            $s_email_notification_title_for_status_bug_inprocess = 'The following task is in progress';

            $s_toverify_bug_title = 'Mark task ready for verification';
            $s_toverify_bug_button = 'Ready for verification';
            $s_email_notification_title_for_status_bug_toverify = 'The following task is ready for verification';

            $s_story_bug_title = 'Mark task done';
            $s_story_bug_button = 'Done';
            $s_email_notification_title_for_status_bug_story = 'The following task is DONE';
    break;

}

mikemol

mikemol

2014-10-27 12:41

reporter   ~0041680

I've since added 50:dummy to my enums, just so I could get those tickets out of that state. And since I've added 50:dummy, my tickets now assign to the "todo" state by default, as they were supposed to.

My problem wasn't with @50@ not getting a string associated, it was that it was there at all. When I redefined my enums, I didn't include 50 or 90 anywhere, but they still showed up.

mikemol

mikemol

2014-10-27 12:42

reporter   ~0041681

My guess is that the '50' and '90' states are hardcoded somewhere. I haven't tried grepping the source to find them.

atrol

atrol

2014-10-27 13:08

developer   ~0041687

Last edited: 2014-10-27 13:13

Didn't check, but overriding the defaults of the following options in your config_inc.php should fix the issue.

$g_bug_submitstatus = NEW;
$g_bug_feedback_status = FEEDBACK;
$g_bug_closed_status_threshold = CLOSED;

Check config_defaults_inc.php for more details.

atrol

atrol

2014-10-27 13:17

developer   ~0041688

Last edited: 2014-10-27 13:19

Questionable
4c) bug_assigned_status = 1
4d) bug_readonly_status_threshold = 1
4e) bug_reopen_status = 1
4f) bug_resolved_status_threshold = 1

Maybe better
4c) bug_assigned_status = 2
4d) bug_readonly_status_threshold = 4
4e) bug_reopen_status = 1
4f) bug_resolved_status_threshold = 4
+
4g) bug_submit_status = 1
4h) bug_feedback_status = 1
4i) bug_closed_status_threshold = 4;

mikemol

mikemol

2014-10-27 13:18

reporter   ~0041689

Last edited: 2014-10-27 13:19

Unless I'm seriously (mis)understanding the purpose of the interface, the settings I have in place here should accomplish the same thing, right?

And, like I said, since I added 50:dummy to the enum set, I was able to rescue the issues, and new issues properly get assigned the 'todo' status.

This isn't about something impeding my workflow; I've already got a workaround in place. I'm reporting this because of the apparent bug in Mantis that required the workaround...

(Edit: That's misunderstanding...)

atrol

atrol

2014-10-27 13:26

developer   ~0041690

I am quite sure that you will get some more problems with your configuration.
I recommend to try my "Maybe better" setting (without any dummy).

I'm reporting this because of the apparent bug in Mantis
It might be a MantisBT bug (something hardcoded as mentioned by you) if you still get the issue after using my recommended settings.

Maybe it's just a wrong configuration.
I have no time to check it at the moment.

mikemol

mikemol

2014-10-27 13:29

reporter   ~0041691

OK, I'll give the new settings a try.

dregad

dregad

2014-12-29 18:13

developer   ~0042073

mikemol,

You did not provide any feedback; I am therefore resolving this issue as "no change required". Feel free to reopen the issue at a later time.