http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99806

Revision: 99806
Author:   kaldari
Date:     2011-10-14 21:17:49 +0000 (Fri, 14 Oct 2011)
Log Message:
-----------
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: 
branches/fundraising/extensions/DonationInterface/gateway_common/DonationData.php
===================================================================
--- 
branches/fundraising/extensions/DonationInterface/gateway_common/DonationData.php
   2011-10-14 21:07:55 UTC (rev 99805)
+++ 
branches/fundraising/extensions/DonationInterface/gateway_common/DonationData.php
   2011-10-14 21:17:49 UTC (rev 99806)
@@ -211,7 +211,6 @@
        }
 
        function setNormalizedAmount() {
-
                if ( !($this->isSomething( 'amount' )) || !(preg_match( 
'/^\d+(\.(\d+)?)?$/', $this->getVal( 'amount' ) ) ) ) {
                        if ( $this->isSomething( 'amountGiven' ) && preg_match( 
'/^\d+(\.(\d+)?)?$/', $this->getVal( 'amountGiven' ) ) ) {
                                $this->setVal( 'amount', number_format( 
$this->getVal( 'amountGiven' ), 2, '.', '' ) );
@@ -221,9 +220,6 @@
                                $this->setVal( 'amount', '0.00' );
                        }
                }
-
-               $this->expunge( 'amountGiven' );
-               $this->expunge( 'amountOther' );
        }
 
        function setOwaRefId() {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to