Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1837

Order: Packages without valid currencies can lead to a JS error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: Client Interface
    • Labels:
      None

      Description

      The following JavaScript error can be encountered after attempting to create a client account from the "Registration" form @ /order/main/packages/...:

      TypeError: $(...).attr(...) is undefined for
      if ($("#package_config").attr('action').indexOf("?") >= 0)
      from /plugins/order/views/templates/ajax/javascript/order.js

      This can occur if the following criteria is met:
      1. The order form supports more currencies than the selected package has pricing defined in
      2. The currency setting "Use Package Pricing for New Services Only" is checked

      The JavaScript '$("#package_config").attr(....)' is undefined because the HTML for id="package_config" was not loaded via AJAX due to the missing pricing.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Oct/15