From: B. P. <bpf...@us...> - 2004-09-22 10:15:44
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22479 Modified Files: manage_proj_edit_page.php manage_proj_ver_add.php Log Message: 0004393: [feature] Version should be add with advanced options (bpfennig) Index: manage_proj_edit_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_edit_page.php,v retrieving revision 1.80 retrieving revision 1.81 diff -u -d -r1.80 -r1.81 --- manage_proj_edit_page.php 21 Sep 2004 07:39:39 -0000 1.80 +++ manage_proj_edit_page.php 22 Sep 2004 10:15:33 -0000 1.81 @@ -299,7 +299,8 @@ <form method="post" action="manage_proj_ver_add.php"> <input type="hidden" name="project_id" value="<?php echo $f_project_id ?>" /> <input type="text" name="version" size="32" maxlength="64" /> - <input type="submit" class="button" value="<?php echo lang_get( 'add_version_button' ) ?>" /> + <input type="submit" name="add_version" class="button" value="<?php echo lang_get( 'add_version_button' ) ?>" /> + <input type="submit" name="add_and_edit_version" class="button" value="<?php echo lang_get( 'add_and_edit_version_button' ) ?>" /> </form> </td> </tr> Index: manage_proj_ver_add.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_ver_add.php,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- manage_proj_ver_add.php 11 Jan 2004 07:16:07 -0000 1.27 +++ manage_proj_ver_add.php 22 Sep 2004 10:15:33 -0000 1.28 @@ -19,6 +19,7 @@ <?php $f_project_id = gpc_get_int( 'project_id' ); $f_version = gpc_get_string( 'version' ); + $f_add_and_edit = gpc_get_bool( 'add_and_edit_version' ); access_ensure_project_level( config_get( 'manage_project_threshold' ), $f_project_id ); @@ -52,7 +53,13 @@ } } - $t_redirect_url = 'manage_proj_edit_page.php?project_id=' .$f_project_id; + if ( true == $f_add_and_edit ) { + $t_version_id = version_get_id( $t_version, $f_project_id ); + $t_redirect_url = 'manage_proj_ver_edit_page.php?version_id='.$t_version_id; + } + else { + $t_redirect_url = 'manage_proj_edit_page.php?project_id=' .$f_project_id; + } ?> <?php html_page_top1(); |