View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0008926 | mantisbt | feature | public | 2008-02-25 06:35 | 2008-02-25 06:35 |
| Reporter | mattrq | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | have not tried |
| Status | new | Resolution | open | ||
| Product Version | 1.1.1 | ||||
| Summary | 0008926: 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. | ||||
| Tags | No 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>';
}
}
# --------------------
| ||||