Skip to content

Commit

Permalink
Modified bug_update_advanced to allow for more fields to be updated.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@824 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Mar 29, 2002
1 parent fa42120 commit b616dcd
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 16 deletions.
9 changes: 8 additions & 1 deletion bug_update.php
Expand Up @@ -40,12 +40,16 @@
if (!isset( $f_version )) {
$f_version = "";
}
if (!isset( $f_build )) {
$f_build = "";
}

# prepare strings
$f_os = string_prepare_text( $f_os );
$f_os_build = string_prepare_text( $f_os_build );
$f_platform = string_prepare_text( $f_platform );
$f_version = string_prepare_text( $f_version );
$f_build = string_prepare_text( $f_build );
$f_summary = string_prepare_text( $f_summary );
$f_description = string_prepare_textarea( $f_description );
$f_steps_to_reproduce = string_prepare_textarea( $f_steps_to_reproduce );
Expand All @@ -62,7 +66,10 @@
priority='$f_priority', status='$f_status',
projection='$f_projection', duplicate_id='$f_duplicate_id',
resolution='$f_resolution', handler_id='$f_handler_id',
eta='$f_eta', summary='$f_summary'
eta='$f_eta', summary='$f_summary',
os='$f_os', os_build='$f_os_build',
platform='$f_platform', build='$f_build',
version='$f_version'
WHERE id='$f_id'";
$result = db_query($query);

Expand Down
12 changes: 7 additions & 5 deletions bug_update_advanced_page.php
Expand Up @@ -163,7 +163,7 @@
<?php echo $s_platform ?>
</td>
<td>
<?php echo $v_platform ?>
<input type="text" name="f_platform" size="16" maxlength="32" value="<?php echo $v_platform ?>">
</td>
</tr>
<tr class="row-2">
Expand All @@ -185,7 +185,7 @@
<?php echo $s_os ?>
</td>
<td>
<?php echo $v_os ?>
<input type="text" name="f_os" size="16" maxlength="32" value="<?php echo $v_os ?>">
</td>
</tr>
<tr class="row-1">
Expand All @@ -204,7 +204,7 @@
<?php echo $s_os_version ?>
</td>
<td>
<?php echo $v_os_build ?>
<input type="text" name="f_os_build" size="16" maxlength="16" value="<?php echo $v_os_build ?>">
</td>
</tr>
<tr class="row-2">
Expand All @@ -223,7 +223,9 @@
<?php echo $s_product_version ?>
</td>
<td>
<?php echo $v_version ?>
<select name="f_version">
<?php print_version_option_list( $f_version, $v_version ) ?>
</select>
</td>
</tr>
<tr class="row-1">
Expand All @@ -234,7 +236,7 @@
<?php echo $s_build ?>
</td>
<td>
<?php echo $v_build?>
<input type="text" name="f_build" size="16" maxlength="32" value="<?php echo $v_build ?>">
</td>
</tr>
<tr class="row-2">
Expand Down
1 change: 1 addition & 0 deletions bug_update_page.php
Expand Up @@ -61,6 +61,7 @@
<input type="hidden" name="f_os_build" value="<?php echo $v_os_build ?>">
<input type="hidden" name="f_platform" value="<?php echo $v_platform ?>">
<input type="hidden" name="f_version" value="<?php echo $v_version ?>">
<input type="hidden" name="f_build" value="<?php echo $v_build ?>">
<input type="hidden" name="f_steps_to_reproduce" value="<?php echo $v2_steps_to_reproduce ?>">
<tr>
<td class="form-title" colspan="3">
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -16,6 +16,7 @@ Mantis
* Modified reset password functionality to use g_send_reset_password to determine whether a password is set to blank or emailed to the user.
* Modified color legend is now generated form the $g_status_enum_string variable.
* Modified print_enum_string_option_list() to work better.
* Modified bug_update_advanced to allow for more fields to be updated.
* Added Hungarian translation.
* Added g_bug_link_tag to let users customize how to create bug links.
* Added a "jump to bugnotes" quicklink at the top of the view bug pages.
Expand Down
14 changes: 7 additions & 7 deletions report_add.php
Expand Up @@ -49,8 +49,8 @@
$f_os = "";
}

if ( !isset( $f_osbuild ) ) {
$f_osbuild = "";
if ( !isset( $f_os_build ) ) {
$f_os_build = "";
}

if ( !isset( $f_product_version ) ) {
Expand Down Expand Up @@ -86,7 +86,7 @@
$f_build = string_prepare_text( $f_build );
$f_platform = string_prepare_text( $f_platform );
$f_os = string_prepare_text( $f_os );
$f_osbuild = string_prepare_text( $f_osbuild );
$f_os_build = string_prepare_text( $f_os_build );

# if a profile was selected then let's use that information
if ( !empty( $f_profile_id ) ) {
Expand All @@ -101,7 +101,7 @@

$f_platform = string_prepare_text( $v_platform );
$f_os = string_prepare_text( $v_os );
$f_osbuild = string_prepare_text( $v_os_build );
$f_os_build = string_prepare_text( $v_os_build );
}

# Insert text information
Expand Down Expand Up @@ -137,7 +137,7 @@
VALUES
( null, '$g_project_cookie_val', '$u_id', '$f_assign_id', '0000000', '$t_nor', '$f_severity',
'$f_reproducibility', '$t_status', '$t_open', 10, '$f_category',
NOW(), NOW(), 10, '$t_id', '$f_os', '$f_osbuild',
NOW(), NOW(), 10, '$t_id', '$f_os', '$f_os_build',
'$f_platform', '$f_product_version', '$f_build',
1, '$f_profile_id', '$f_summary' )";
$result = db_query( $query );
Expand Down Expand Up @@ -230,7 +230,7 @@
<input type="hidden" name="f_profile_id" value="<?php echo $f_profile_id ?>">
<input type="hidden" name="f_platform" value="<?php echo $f_platform ?>">
<input type="hidden" name="f_os" value="<?php echo $f_os ?>">
<input type="hidden" name="f_osbuild" value="<?php echo $f_osbuild ?>">
<input type="hidden" name="f_os_build" value="<?php echo $f_os_build ?>">
<input type="hidden" name="f_product_version" value="<?php echo $f_product_version ?>">
<input type="hidden" name="f_build" value="<?php echo $f_build ?>">
<input type="hidden" name="f_assign_id" value="<?php echo $f_assign_id ?>">
Expand All @@ -255,7 +255,7 @@
<input type="hidden" name="f_profile_id" value="<?php echo $f_profile_id ?>">
<input type="hidden" name="f_platform" value="<?php echo $f_platform ?>">
<input type="hidden" name="f_os" value="<?php echo $f_os ?>">
<input type="hidden" name="f_osbuild" value="<?php echo $f_osbuild ?>">
<input type="hidden" name="f_os_build" value="<?php echo $f_os_build ?>">
<input type="hidden" name="f_product_version" value="<?php echo $f_product_version ?>">
<input type="hidden" name="f_build" value="<?php echo $f_build ?>">
<input type="hidden" name="f_report_stay" value="<?php echo $f_report_stay ?>">
Expand Down
6 changes: 3 additions & 3 deletions report_bug_advanced_page.php
Expand Up @@ -48,8 +48,8 @@
$f_os = "";
}

if ( !isset( $f_osbuild ) ) {
$f_osbuild = "";
if ( !isset( $f_os_build ) ) {
$f_os_build = "";
}

if ( !isset( $f_product_version ) ) {
Expand Down Expand Up @@ -177,7 +177,7 @@
<?php echo $s_os_version ?>:
</td>
<td>
<input type="text" name="f_osbuild" size="16" maxlength="16" value="<?php echo $f_osbuild ?>">
<input type="text" name="f_os_build" size="16" maxlength="16" value="<?php echo $f_os_build ?>">
</td>
</tr>
<tr>
Expand Down

0 comments on commit b616dcd

Please sign in to comment.