View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014842 | mantisbt | bugtracker | public | 2012-10-18 09:52 | 2014-09-23 18:05 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.9 | ||||
Target Version | 1.2.12 | Fixed in Version | 1.2.12 | ||
Summary | 0014842: Incorrect matching of versions in print_version_option_list() | ||||
Description | When comparing versions to determine which ones to include in 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 0013096). | ||||
Steps To Reproduce |
==> The current version '1' should be displayed but instead is set to blank | ||||
Tags | No tags attached. | ||||
The in_array() introduced in 0010192 check should use strict comparison, to ensure that '1' and '1.0' are treated as different versions. |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master-1.2.x 14560348 2012-10-18 02:54 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 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 |