removing a status

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
danb
Posts: 7
Joined: 03 Jun 2008, 18:03

removing a status

Post by danb »

Hi,
we've been using Mantis for a while now and have made afew custom changes to our installation with success.
One we made was to remove the 'resolved' status (not my choice) and keep only the 'closed' status.
It seems to work fine except for one very small detail: when you view an existing issue, the 'change status to:' drop down combo box now contains a '@80@' choice we can't get rid of.
I know that that 80 refers to the value 'resolved' had but I can't see how it gets there. I looked everywhere to no avail.

It's no big deal (we never select that value) but I am curious.
Anyone knows?

Cheers
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: removing a status

Post by vboctor »

Did you remove it from the status enumation value that is defined in config_defaults_inc.php? You will need to override this value in config_inc.php.
Migrate your MantisBT to the MantisHub Cloud
danb
Posts: 7
Joined: 03 Jun 2008, 18:03

Re: removing a status

Post by danb »

Indeed.
It's been removed from the $g_status_enum_string in config_inc.php only.
Also the $g_status_enum_workflow array has been modified accordingly so there's no more reference to that status.
AFAIK this 'Change to Status' field is the only place where @80@ appears. I can't see where that value comes from.
D
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: removing a status

Post by deboutv »

Check that page http://.../mantis/adm_config_report.php and look if you have status_enum_workflow in the table. If yes, remove it.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
danb
Posts: 7
Joined: 03 Jun 2008, 18:03

Re: removing a status

Post by danb »

I see no such file in my installation.
I searched for 'status_enum_workflow' but only found it in config files. I did find STRINGS but no such variable elsewhere.

A bug in Mantis? Anyone experienced this before?
danb
Posts: 7
Joined: 03 Jun 2008, 18:03

Re: removing a status

Post by danb »

I see no such file in my installation.
I searched for 'status_enum_workflow' but only found it in config files. I did find STRINGS but no such variable elsewhere.

A bug in Mantis? Anyone experienced this before?
danb
Posts: 7
Joined: 03 Jun 2008, 18:03

Re: removing a status

Post by danb »

I see no such file in my installation.
I searched for 'status_enum_workflow' but only found it in config files. I did find STRINGS but no such variable elsewhere.

A bug in Mantis? Anyone experienced this before?
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: removing a status

Post by vboctor »

What is your Mantis verison?

I've just checked the latest Mantis code. I did the following:

1. Set the following in config_inc.php

Code: Select all

$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,90:closed';
2. Opened a bug for viewing.
3. Checked out the Change Status drop down and the "assigned" / "resolved" were not there.

So it is either a bug that was already fixed (in 1.2.x, I haven't tested on 1.1.x) or it is specific to your installation.
Migrate your MantisBT to the MantisHub Cloud
duwil
Posts: 46
Joined: 08 Jul 2008, 12:14

Re: removing a status

Post by duwil »

Since I misunderstood the topic, I deleted my post: it was inconsistent.
Sorry

---
Last edited by duwil on 30 Sep 2008, 09:49, edited 3 times in total.
autra
Posts: 21
Joined: 25 Aug 2008, 09:40

Re: removing a status

Post by autra »

Mantis displays @Number@ when it finds something it cannot display.

You suppress the 80:resolved, but I think it is still in the workflow. So mantis cannot display it because you suppress it, but try to do it because you set it up in the workflow (maybe).

go to manage > manage configuration > configuration report and look at the table If a status_enum_workflow is here, suppress it (you must do that as admin account).
Then check config_default_inc.php or config_inc.php and check $g_status_enum_workflow. if a 80 or 80:resolved appear in it and is not commented, suppress it.
Post Reply