View Issue Details

IDProjectCategoryView StatusLast Update
0025897mantisbtcustomizationpublic2021-06-02 06:43
ReporterMr.Bricodage Assigned Todregad  
PrioritynormalSeveritytrivialReproducibilityN/A
Status assignedResolutionopen 
Product Version2.21.1 
Summary0025897: Add a configuration option to remove "empty value" in versions fields depending on the issue status
Description

In Mantis, version values in fields (version, fixed_in_version, target_version) are defined through lists.

During creation/update, versions defined by project manager are proposed in GUI, with an extra "leading blank" introduced by Mantis in print_version_option_list(). This blank version can be selected during issue creation/update.

What about create a new configuration option to enable/disable leading blank value in these fields ?
That configuration should be defined in a new per status 2-dimensional matrix to handle issue current status.

As an example for the 2D matrix configuration :
$g_disable_leading_blank_version[target_version]='40:confirmed,50:assigned,80:resolved';
$g_disable_leading_blank_version[version]='10:new;20:feedback,30:acknowledged,40:confirmed,50:assigned,80:resolved';

By default, the option could be defined as empty array, meaning that the current behaviour still occurs : an empty value is printed.

For version fields where the leading blank value is disabled in custom configuration, the list should be displayed according to "category" list, with a (select) label and a form that check the value is set. The label should be prefixed by a required class too.
See attachments for the Enabled/Disabled GUI.

What are your suggestions/feedback about this ?

TagsNo tags attached.
Attached Files
EmptyValueDisabled.png (10,131 bytes)   
EmptyValueDisabled.png (10,131 bytes)   
EmptyValueEnabled.png (12,563 bytes)   
EmptyValueEnabled.png (12,563 bytes)   

Activities

dregad

dregad

2019-07-01 06:07

developer   ~0062346

In other words, you'd like to be able to make version fields mandatory based on status ?

It could be useful. I don't have time to analyze in depth, but for sure the wording for the proposed new config needs to be changed to reflect the actual semantics - "disable_leading_blank_version" is confusing.

Mr.Bricodage

Mr.Bricodage

2021-06-02 06:43

reporter   ~0065589

In other words, you'd like to be able to make version fields mandatory based on status ?

Yes, for several version fields.

It could be useful. I don't have time to analyze in depth, but for sure the wording for the proposed new config needs to be changed to reflect the actual semantics - "disable_leading_blank_version" is confusing.

What do you think about $g_status_enum_mandatory_version_fields[product_version] and $g_status_enum_mandatory_version_fields[target_version] ?