[guadec-web-regcfp] fix



commit ed33b2292b2367132c6681e42f496b9c8a9182c7
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date:   Wed Jun 3 22:59:10 2015 +0200

    fix

 routes/registration.js          |    4 ----
 views/registration/register.hbs |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/routes/registration.js b/routes/registration.js
index 5afa7bc..2cccc76 100644
--- a/routes/registration.js
+++ b/routes/registration.js
@@ -105,10 +105,6 @@ router.post('/register', function(req, res, next) {
     console.log("Reg info: " + JSON.stringify(reg_info));
 
     var regfee = req.body.regfee;
-    if(regfee == 'custom')
-    {
-      regfee = req.body.regfee_custom.trim();
-    }
 
     if((reg == null && regfee == null)) {
       res.render('registration/register', { registration: reg_info,
diff --git a/views/registration/register.hbs b/views/registration/register.hbs
index ef16850..e35460a 100644
--- a/views/registration/register.hbs
+++ b/views/registration/register.hbs
@@ -13,7 +13,7 @@
 {{#unless ask_regfee}}
 Registered
 {{else}}
-<input type="text" name="regfee_custom" class="reg-fee" value="{{config.registration.currency_symbol}}40">
+<input type="text" name="regfee" class="reg-fee" value="{{config.registration.currency_symbol}}40">
 <p class="note">We can only provide receipts for payments over 
{{config.registration.currency_symbol}}{{config.registration.min_amount_for_receipt}}.
 {{/unless}}</p>
 </tr>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]