Skip to content

Commit

Permalink
fix for 0005999: Changing one sponsorship payment status on a bug cha…
Browse files Browse the repository at this point in the history
…nges others on the same bug

  - sponsor_id was ignored


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3740 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
thraxisp committed Jul 23, 2005
1 parent f1d047e commit ef1e60e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions account_sponsor_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: account_sponsor_page.php,v 1.3 2005-07-20 14:19:40 thraxisp Exp $
# $Id: account_sponsor_page.php,v 1.4 2005-07-23 15:09:51 thraxisp Exp $
# --------------------------------------------------------

# CALLERS
Expand Down Expand Up @@ -247,7 +247,7 @@
print_user( $t_sponsor->user_id );
echo '</td>';
echo '<td class="right">' . sponsorship_format_amount( $t_sponsor->amount ) . '</td>';
echo '<td><select name="sponsor_' . $row['bug'] . '">';
echo '<td><select name="sponsor_' . $row['bug'] . '_' . $t_sponsor->id . '">';
print_enum_string_option_list( 'sponsorship', $t_sponsor->paid );
echo '</select></td>';

Expand Down
4 changes: 2 additions & 2 deletions account_sponsor_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: account_sponsor_update.php,v 1.1 2005-07-03 15:09:10 thraxisp Exp $
# $Id: account_sponsor_update.php,v 1.2 2005-07-23 15:09:51 thraxisp Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -39,7 +39,7 @@
$t_bug = bug_get( $c_bug_id );
$t_sponsor = sponsorship_get( (int) $t_sponsor_id );

$t_new_payment = gpc_get_int( 'sponsor_' . $c_bug_id, $t_sponsor->paid );
$t_new_payment = gpc_get_int( 'sponsor_' . $c_bug_id . '_' . $t_sponsor->id, $t_sponsor->paid );
if ( $t_new_payment != $t_sponsor->paid ) {
sponsorship_update_paid( $t_sponsor_id, $t_new_payment );
}
Expand Down

0 comments on commit ef1e60e

Please sign in to comment.