Plugin Directory

Changeset 760462


Ignore:
Timestamp:
08/22/2013 02:27:33 AM (13 years ago)
Author:
vellengs
Message:

Fixed float calculate issue.

Location:
dutch-auction-masters/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dutch-auction-masters/trunk/auction.adapter.php

    r755973 r760462  
    344344            $last_bids = self::get_last_bids ( $auctionid );
    345345
    346             if (! empty ( $auction->bid_price ))
    347                 $price = $auction->bid_price;
     346            if (floatval($auction->bid_price) <= 0)
     347                $price = $auction->start_price;
    348348            else
    349                 $price = $auction->start_price;
     349                $price =  $auction->bid_price;
    350350
    351351           
  • dutch-auction-masters/trunk/views/widget.ui.php

    r756596 r760462  
    119119                            class="bid-price-input appendedPrependedInput span1"
    120120                            name="bid_price"
    121                             value="<?php echo ($auction->bid_price + $auction->step_price) ; ?>"
     121                            value="<?php echo (floatval($auction->bid_price) + floatval($auction->step_price)) ; ?>"
    122122                            type="text" />
    123123                        <button type="button" class="btn increase">+</button>
Note: See TracChangeset for help on using the changeset viewer.