View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004393 | mantisbt | feature | public | 2004-08-25 14:36 | 2004-11-06 06:52 |
| Reporter | bpfennig | Assigned To | bpfennig | ||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | fixed | ||
| Fixed in Version | 0.19.1 | ||||
| Summary | 0004393: Version should be add with advanced options | ||||
| Description | It would be useful if a user can add a version with advanced option, like the version edit form. So he don't need to select edit version after add. Maybe we could delete the current add version mechanism and open the edit version form evertime the user will add a version. | ||||
| Tags | No tags attached. | ||||
| Attached Files | patch_0004393.txt (2,805 bytes)
cvs -z9 diff -u manage_proj_ver_add.php (in directory D:\cvsroot\mantisbt\)
Index: manage_proj_ver_add.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_ver_add.php,v
retrieving revision 1.27
diff -u -r1.27 manage_proj_ver_add.php
--- manage_proj_ver_add.php 11 Jan 2004 07:16:07 -0000 1.27
+++ manage_proj_ver_add.php 25 Aug 2004 19:18:31 -0000
@@ -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();
cvs -z9 diff -u manage_proj_edit_page.php (in directory D:\cvsroot\mantisbt\)
Index: manage_proj_edit_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_edit_page.php,v
retrieving revision 1.79
diff -u -r1.79 manage_proj_edit_page.php
--- manage_proj_edit_page.php 14 Jul 2004 22:16:34 -0000 1.79
+++ manage_proj_edit_page.php 25 Aug 2004 18:43:52 -0000
@@ -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>
cvs -z9 diff -u strings_english.txt (in directory D:\cvsroot\mantisbt\lang\)
Index: strings_english.txt
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/lang/strings_english.txt,v
retrieving revision 1.204
diff -u -r1.204 strings_english.txt
--- strings_english.txt 21 Aug 2004 13:52:18 -0000 1.204
+++ strings_english.txt 25 Aug 2004 18:42:35 -0000
@@ -638,6 +638,7 @@
$s_add_category_button = 'Add Category';
$s_versions = 'Versions';
$s_add_version_button = 'Add Version';
+$s_add_and_edit_version_button = 'Add and edit version';
$s_edit_link = 'Edit';
$s_actions = 'Actions';
$s_version = 'Version';
| ||||