Skip to content

Commit

Permalink
Indentation and cosmetic changes.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1151 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Jun 22, 2002
1 parent 5ed5051 commit b1e6ef2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
9 changes: 4 additions & 5 deletions bug_actiongroup.php
Expand Up @@ -36,7 +36,7 @@ function updateBugLite($p_id, $p_status, $p_request) {
break ;

case RESOLVED :
$t_query=" status='$p_status',"." resolution='$p_request'";
$t_query=" status='$p_status', resolution='$p_request'";
break ;

case 'UP_PRIOR' :
Expand All @@ -49,9 +49,9 @@ function updateBugLite($p_id, $p_status, $p_request) {

}
# Update fields
$query = "UPDATE $g_mantis_bug_table
SET handler_id='$t_handler_id',".$t_query."
WHERE id='$p_id'";
$query = "UPDATE $g_mantis_bug_table ".
"SET handler_id='$t_handler_id', $t_query ".
"WHERE id='$p_id'";

$result = db_query($query);

Expand Down Expand Up @@ -113,6 +113,5 @@ function updateBugLite($p_id, $p_status, $p_request) {
}

print_meta_redirect( 'view_all_bug_page.php',0);

}
?>
40 changes: 21 additions & 19 deletions bug_actiongroup_page.php
Expand Up @@ -15,19 +15,19 @@
<?php
# the pencil shortcut, to directly edit bugs
if ( $QUERY_STRING!='' ) {
$f_qsValues=split('&', $QUERY_STRING);
foreach($f_qsValues as $value) {
$val=split('=', $value);
if ( substr($val[0], 0, 6)=='update' ) {
print_meta_redirect( 'bug_update_advanced_page.php?f_id='.substr($val[0], 7, strlen($val[0])-9), 0 );
$f_qsValues=split('&', $QUERY_STRING);
foreach($f_qsValues as $value) {
$val=split('=', $value);
if ( substr($val[0], 0, 6)=='update' ) {
print_meta_redirect( 'bug_update_advanced_page.php?f_id='.substr($val[0], 7, strlen($val[0])-9), 0 );
}
}
}
}

# redirects to all_bug_page if nothing is selected
if (( $f_action=='') or count($f_bug_arr)==0 ) {
print_meta_redirect( 'view_all_bug_page.php',0);
exit;
print_meta_redirect( 'view_all_bug_page.php',0);
exit;
}


Expand Down Expand Up @@ -104,7 +104,8 @@

<?php
foreach($f_bug_arr as $value) {
print "<input type=\"hidden\" name=\"f_bug_arr[]\" value=\"$value\">"; }
print "<input type=\"hidden\" name=\"f_bug_arr[]\" value=\"$value\">";
}
?>

<tr class="row-1">
Expand All @@ -115,17 +116,18 @@
<select name="<?php echo $t_form ?>">
<?php
switch ( $f_action ) {
case 'MOVE':
print_project_option_list();
break;
case 'MOVE':
print_project_option_list();
break;

case 'ASSIGN':
print_assign_to_option_list();
break;
case 'ASSIGN':
print_assign_to_option_list();
break;
}

#other forms use the same function to display the list
print_enum_string_option_list( $t_request, FIXED ) ?>
print_enum_string_option_list( $t_request, FIXED );
?>
</select>
</td>
</tr>
Expand Down Expand Up @@ -156,10 +158,10 @@
<input type="hidden" name="f_actionconfirmed" value="1">
<input type="hidden" name="f_action" value="<?php echo $f_action ?>">

<?php
<?php
foreach($f_bug_arr as $value)
print "<input type=\"hidden\" name=\"f_bug_arr[]\" value=\"$value\">";
?>
print "<input type=\"hidden\" name=\"f_bug_arr[]\" value=\"$value\">";
?>

<input type="submit" value="<?php echo $t_button_title ?>">
</form>
Expand Down

0 comments on commit b1e6ef2

Please sign in to comment.