changelog: How to set the "not yet released" info?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Uwe
Posts: 21
Joined: 05 Nov 2008, 10:13
Location: Flensburg, Germany

changelog: How to set the "not yet released" info?

Post by Uwe »

Hello,

in the Mantis official changelog the upcoming version is "mantisbt - 1.2.x (not yet released)".
How do you manage to display the information "(not yet released)"?
My latest version is also not released (check box in the "Edit Project Version" window is unset) but I didn't have that text being shown.

Regards,
Uwe

P.S.: My Mantis version is 1.1.2
Uwe
Posts: 21
Joined: 05 Nov 2008, 10:13
Location: Flensburg, Germany

Re: changelog: How to set the "not yet released" info?

Post by Uwe »

I modified the code in "changelog.php" to acieve it:

$t_project_name = project_get_field( $t_project_id, 'name' );

+ $t_version_released = version_get_field( $p_version_id, 'released' );
+ $t_date_order = version_get_field( $p_version_id, 'date_order' );
+ $t_release_date = date( config_get( 'short_date_format' ), $t_date_order );
+ if ( (bool) $t_version_released ) {
+ $t_release_title = string_display( $t_project_name ) . ' - ' . string_display( $t_version_name ) . ' - ' . $t_release_date ;
+ }
+ else {
+ $t_release_title = string_display( $t_project_name ) . ' - ' . string_display( $t_version_name ) . ' - ' . 'not released yet' ;
+ }

echo '<tt>';
echo '<br />', $t_release_title, '<br />';
echo str_pad( '', strlen( $t_release_title ), '=' ), '<br />';

-- Uwe
Post Reply