View Issue Details

IDProjectCategoryView StatusLast Update
0008926mantisbtfeaturepublic2008-02-25 06:35
Reportermattrq Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
Product Version1.1.1 
Summary0008926: Version drop down list shows if (released) when the list shows both release and unreleased versions
Description

Wherever a version drop down is shown with both release and unreleased version indicate the released versions.

The example patch will add " Released" to a released versions.

TagsNo tags attached.
Attached Files
mantis.patch (797 bytes)   
diff -r -u mantis-1.1.1.old/core/print_api.php mantis-1.1.1/core/print_api.php
--- mantis-1.1.1.old/core/print_api.php	2008-02-25 11:28:56.000000000 +0000
+++ mantis-1.1.1/core/print_api.php	2008-02-25 11:28:09.000000000 +0000
@@ -829,10 +829,13 @@
 		}
 
 		foreach( $versions as $version ) {
-			$t_version = string_attribute( $version['version'] );
+			$t_version_name = $t_version = string_attribute( $version['version'] );
+			if ( ( null !== $p_released ) && ( $version['released'] == 1 ) ){
+				$t_version_name .= 	' '.lang_get( 'released' );
+			}
 			echo "<option value=\"$t_version\"";
 			check_selected( $p_version, $t_version );
-			echo '>', string_shorten( $t_version ), '</option>';
+			echo '>', string_shorten( $t_version_name ), '</option>';
 		}
 	}
 	# --------------------
mantis.patch (797 bytes)   

Activities