Index: branches/fundraising/extensions/DonationInterface/gateway_common/DonationData.php |
— | — | @@ -211,7 +211,6 @@ |
212 | 212 | } |
213 | 213 | |
214 | 214 | function setNormalizedAmount() { |
215 | | - |
216 | 215 | if ( !($this->isSomething( 'amount' )) || !(preg_match( '/^\d+(\.(\d+)?)?$/', $this->getVal( 'amount' ) ) ) ) { |
217 | 216 | if ( $this->isSomething( 'amountGiven' ) && preg_match( '/^\d+(\.(\d+)?)?$/', $this->getVal( 'amountGiven' ) ) ) { |
218 | 217 | $this->setVal( 'amount', number_format( $this->getVal( 'amountGiven' ), 2, '.', '' ) ); |
— | — | @@ -221,9 +220,6 @@ |
222 | 221 | $this->setVal( 'amount', '0.00' ); |
223 | 222 | } |
224 | 223 | } |
225 | | - |
226 | | - $this->expunge( 'amountGiven' ); |
227 | | - $this->expunge( 'amountOther' ); |
228 | 224 | } |
229 | 225 | |
230 | 226 | function setOwaRefId() { |