Identifying Unreleased Versions in the Changelog

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
tom_glebas
Posts: 14
Joined: 07 Sep 2009, 23:19

Identifying Unreleased Versions in the Changelog

Post by tom_glebas »

Following up to the post in the General Discussion about seeing versions/issues in both the change log and road map (http://www.mantisbt.org/forums/viewtopic.php?f=2&t=6968), below is an easy solution that adds "Release Pending" to versions in the change log that are not yet released. These modifications are made to the function print_version_header( $p_version_id ) in mantis/changelog_page.php Of course, "Release Pending" should be made language-specific using lang_get().

Code: Select all

// Get the release status of each version
		$my_released = version_get_field( $p_version_id, 'released' );

//existing code (1.1.4)
		$t_release_title = string_display( $t_project_name ) . ' - ' . string_display( $t_version_name );

// If version is not released, append "Release Pending" to the title
		if (!$my_released) {
		  $t_release_title .= " (Release Pending)";
		  }
Post Reply