From 04bc669d09e75063f75401736c74957a5b42d4f4 Mon Sep 17 00:00:00 2001 From: Julia Hansbrough Date: Thu, 17 Oct 2013 14:46:07 +0000 Subject: [PATCH] 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 --- common/djangoapps/course_modes/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/course_modes/views.py b/common/djangoapps/course_modes/views.py index 02934f3650..e247ac08a2 100644 --- a/common/djangoapps/course_modes/views.py +++ b/common/djangoapps/course_modes/views.py @@ -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