Fixed bug LMS-1117

When registering for an verified certificate, if you selected a suggested price option, closed the browser halfway through the steps, and re-opened, the contribution would be written in the text input field instead of preselecting the appropriate radio button.  This commit fixes that behavior
This commit is contained in:
Julia Hansbrough
2013-10-17 14:46:07 +00:00
parent 9f5bd4e65b
commit 04bc669d09

View File

@@ -52,7 +52,7 @@ class ChooseModeView(View):
"error": error,
}
if "verified" in modes:
context["suggested_prices"] = modes["verified"].suggested_prices.split(",")
context["suggested_prices"] = [decimal.Decimal(x) for x in modes["verified"].suggested_prices.split(",")]
context["currency"] = modes["verified"].currency.upper()
context["min_price"] = modes["verified"].min_price