View Issue Details

IDProjectCategoryView StatusLast Update
0007009mantisbtchange logpublic2006-09-12 00:52
Reporterericchappuis Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.1 
Fixed in Version1.1.0a1 
Summary0007009: Fixed_in_version abbreviated hide version in Change Log
Description

when updating a bug, long version are abbreviated with ...

Version PHASE2_VERSION2/build-P20-7/20060428043258 is made shorter to PHASE2_VERSION2/build-...20060428043258

The same value is stored in the mantis_bug_table for the fixed_in_version field and is therefore not seen in change log

Did not appeared in version 0.19, visible since migration to 1.0.1

Additional Information

SELECT id, fixed_in_version
FROM mantis_bug_table
WHERE id = 259 or id=425 order by id desc;
+-----+-------------------------------------------------+
| id | fixed_in_version |
+-----+-------------------------------------------------+
| 425 | PHASE2_VERSION2/build-...20060428043258 | < version truncated
| 259 | Phase_2_Version_1_5/build-P15-21/20060411090054 |
+-----+-------------------------------------------------+

SELECT id, version
FROM mantis_project_version_table
WHERE version like '%20060428043258%'
OR version like '%20060411090054';

+----+-------------------------------------------------+
| id | version |
+----+-------------------------------------------------+
| 26 | Phase_2_Version_1_5/build-P15-21/20060411090054 |
| 30 | PHASE2_VERSION2/build-P20-7/20060428043258 | version complete
+----+-------------------------------------------------+

TagsNo tags attached.

Activities

ericchappuis

ericchappuis

2006-05-01 11:11

reporter   ~0012763

small idea for fixing :

in core/print_api.php

function print_version_option_list( $p_version='', $p_project_id = null,
...
foreach( $versions as $version ) {
$t_version = string_shorten( string_attribute( $version['version'] ) );
echo "<option value=\"$t_version\""; # DO NOT PUT SHORTEN VALUE HERE
check_selected( $p_version, $t_version );
echo ">$t_version</option>"; # ONLY HERE
}
}

ericchappuis

ericchappuis

2006-05-03 05:47

reporter   ~0012771

Tested, this change works.
Also correct side bugs, selection did not work and work now.
Eric

foreach( $versions as $version ) {
$t_version_long = string_attribute( $version['version'] );
$t_version_short = string_shorten( string_attribute( $version['version'] ) );
echo "<option value=\"$t_version_long\"";
check_selected( $p_version, $t_version_long );
echo ">$t_version_short</option>";
}

vboctor

vboctor

2006-05-18 02:56

manager   ~0012872

Following is the applied fix:

foreach( $versions as $version ) {
$t_version = string_attribute( $version['version'] );
echo "<option value=\"$t_version\"";
check_selected( $p_version, $t_version );
echo '>', string_shorten( $t_version ), '</option>';
}