Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter2.php |
— | — | @@ -79,7 +79,7 @@ |
80 | 80 | } |
81 | 81 | |
82 | 82 | protected function generateBillingFields() { |
83 | | - global $wgScriptPath, $wgPayflowGatewayPaypalURL; |
| 83 | + global $wgScriptPath, $wgPayflowGatewayPaypalURL, $wgRequest; |
84 | 84 | $scriptPath = "$wgScriptPath/extensions/DonationInterface/payflowpro_gateway/includes"; |
85 | 85 | |
86 | 86 | $form = ''; |
— | — | @@ -106,6 +106,7 @@ |
107 | 107 | $form .= $this->getEmailField(); |
108 | 108 | |
109 | 109 | // anonymous |
| 110 | + $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true; |
110 | 111 | $form .= '<tr>'; |
111 | 112 | $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value ); |
112 | 113 | $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>'; |