View Issue Details

IDProjectCategoryView StatusLast Update
0013096mantisbtcustom fieldspublic2014-09-23 18:05
Reporterjonathh Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.2 
Target Version1.2.9Fixed in Version1.2.9 
Summary0013096: Spurious Target Version Behaviour.
Description

Hi, if you set a target version in one area that isn't a valid target version for another area the behaviour is not as you would expect.

Although the issue appears to have no target version.

o) It still appears in searches for that target version (at a higher project level)
o) Further if you do an export the issue still appears to have that target version set.

All of this behaviour although slightly quirky I can forgive as Mantis does not trash fields where valid are not enabled etc.

What is not forgiveable is if you EDIT the issue the target version field comes up as blank. If you 'update' having changed something else or not the target version is trash and set to blank; almost certainly unwittingly.

Can I have some thoughts on this? It makes more sense to me to trash the value as you move it but warn the user. Or at least warn when the value is trashed (unwittingly) with an idle update.

Cheers.

Steps To Reproduce
  • for bug "B"
  • update Target Version field to some existing version "V"
  • mark version "V" as obsolete
  • edit bug "B" - don't make any changes
  • save

Target Version has been set to blank

(The same behavior applies for other Version fields)

TagsNo tags attached.

Relationships

related to 0015721 closedgrangeway Functionality to consider porting to master-2.0.x 
has duplicate 0005659 closeddregad Updating an issue causes version to be deleted if version is not marked released 
related to 0013935 closeddregad Version based filtering not possible 
related to 0013938 closeddregad Error when editing issue having version not existing in current project 
related to 0014842 closeddregad Incorrect matching of versions in print_version_option_list() 

Activities

dregad

dregad

2012-01-10 09:54

developer   ~0030889

@jonathh - I have fixed the so-called "not forgiveable" behavior.

With regards to the first part of your bug report, I am not really sure to fully understand what you mean; if you believe that a fix for this is needed, please feel free to reopen this bug and provide clear steps to reproduce the behavior you describe.

grangeway

grangeway

2013-04-05 17:56

reporter   ~0036224

Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch

Related Changesets

MantisBT: master 0ffb20f8

2012-01-10 00:30

dregad


Details Diff
Prevent unwanted clearing version fields when editing bugs

When editing issues having Version information set to some value that is
no longer available in the selection list (i.e. because the version has
been marked as obsolete), Mantis defaulted the corresponding Version
field to blank in the bug_update_page. If the user then saved the bug,
the version information was consequently cleared in the DB, possibly
without the user even noticing the change.

This commit ensures that the version selection list always includes the
currently set version to avoid this behavior.

Fixes 0013096
Affected Issues
0013096
mod - core/print_api.php Diff File

MantisBT: master-1.2.x a6839824

2012-01-10 00:30

dregad


Details Diff
Prevent unwanted clearing version fields when editing bugs

When editing issues having Version information set to some value that is
no longer available in the selection list (i.e. because the version has
been marked as obsolete), Mantis defaulted the corresponding Version
field to blank in the bug_update_page. If the user then saved the bug,
the version information was consequently cleared in the DB, possibly
without the user even noticing the change.

This commit ensures that the version selection list always includes the
currently set version to avoid this behavior.

Fixes 0013096
Affected Issues
0013096
mod - core/print_api.php Diff File

MantisBT: master 57e20055

2012-02-21 10:48

dregad


Details Diff
Fix 0013935: Version-based filtering not possible

Commit a68398245663d25229800638b6965ffe6e7ab0d3 for bug 0013096
introduced a regression in version-based filtering due to not properly
dealing with selected version parameter when passed as an array.
Affected Issues
0013096, 0013935
mod - core/print_api.php Diff File

MantisBT: master-1.2.x 84c6fe6a

2012-02-21 10:48

dregad


Details Diff
Fix 0013935: Version-based filtering not possible

Commit a68398245663d25229800638b6965ffe6e7ab0d3 for bug 0013096
introduced a regression in version-based filtering due to not properly
dealing with selected version parameter when passed as an array.
Affected Issues
0013096, 0013935
mod - core/print_api.php Diff File

MantisBT: master-1.2.x 14560348

2012-10-18 02:54

dregad


Details Diff
Fix 0014842: Incorrect matching of versions in print_version_option_list

When comparing versions to determine which ones have already been added
to the select list, a loose comparison is performed, so '1' matches
'1.0'.

This causes issues when editing a bug having a version currently
obsolete matching another, previously displayed version. In that case
the obsolete version is not added to the selection list, causing data
loss when the bug is saved (see issue 0013096).
Affected Issues
0013096, 0014842
mod - core/print_api.php Diff File

MantisBT: master 62a24e93

2012-10-18 02:54

dregad


Details Diff
Fix 0014842: Incorrect matching of versions in print_version_option_list

When comparing versions to determine which ones have already been added
to the select list, a loose comparison is performed, so '1' matches
'1.0'.

This causes issues when editing a bug having a version currently
obsolete matching another, previously displayed version. In that case
the obsolete version is not added to the selection list, causing data
loss when the bug is saved (see issue 0013096).
Affected Issues
0013096, 0014842
mod - core/print_api.php Diff File