CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • javascript error with no payment
Pages: [1]

Author Topic: javascript error with no payment  (Read 600 times)

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
javascript error with no payment
October 11, 2012, 09:48:20 am
I've got this unexpected javascript error on an event registration page that doesn't require payment (i've got no payment processors enabled at all on the site).

SyntaxError: syntax error

var payPalExpressId = ;

Looks to me like a bug here CRM/Event/Form/Registration/Register.php

Submitting a patch, listed below as well.
Code: [Select]
--- Register.php.dist 2012-10-11 09:41:19.000000000 -0700
+++ Register.php 2012-10-11 09:43:56.000000000 -0700
@@ -97,6 +97,9 @@
         }
       }
     }
+    else {
+      $this->assign('payPalExpressId', 0);
+    }
         
     //CRM-4320.
     //here we can't use parent $this->_allowWaitlist as user might

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: javascript error with no payment
October 11, 2012, 09:52:15 am
patch submitted here:

http://issues.civicrm.org/jira/browse/CRM-11035

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • javascript error with no payment

This forum was archived on 2017-11-26.