r99806 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99805‎ | r99806 | r99807 >
Date:21:17, 14 October 2011
Author:kaldari
Status:ok
Tags:fundraising 
Comment:
we should still be able to display the entered amountOther amount even if we dont ultimately use it
Modified paths:
  • /branches/fundraising/extensions/DonationInterface/gateway_common/DonationData.php (modified) (history)

Diff [purge]

Index: branches/fundraising/extensions/DonationInterface/gateway_common/DonationData.php
@@ -211,7 +211,6 @@
212212 }
213213
214214 function setNormalizedAmount() {
215 -
216215 if ( !($this->isSomething( 'amount' )) || !(preg_match( '/^\d+(\.(\d+)?)?$/', $this->getVal( 'amount' ) ) ) ) {
217216 if ( $this->isSomething( 'amountGiven' ) && preg_match( '/^\d+(\.(\d+)?)?$/', $this->getVal( 'amountGiven' ) ) ) {
218217 $this->setVal( 'amount', number_format( $this->getVal( 'amountGiven' ), 2, '.', '' ) );
@@ -221,9 +220,6 @@
222221 $this->setVal( 'amount', '0.00' );
223222 }
224223 }
225 -
226 - $this->expunge( 'amountGiven' );
227 - $this->expunge( 'amountOther' );
228224 }
229225
230226 function setOwaRefId() {

Status & tagging log