Amount type "Monetary" ignored
Got the latest CiviDiscount last night (Aug 8) and installed. I'm using CiviCRM 4.2beta4 on Drupal 7. I have created an automatic discount, which is given to people who are registering for an event and who have an active membership. The discount is displayed correctly in the listing, but when I register for an event, the discount is given as a percentage of the base amount, not as a dollar amount discount.
On line 809 of cividiscount.php
if ( $code['amount_type'] == 'M' ) {
should be
if ( $code['amount_type'] == '2' ) {