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

Order: AJAX template causes JavaScript error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.1
    • Component/s: None
    • Labels:
      None

      Description

      When checking out with an order using an AJAX order template (e.g. AJAX Boxes), the "Order Summary", "Payment Method", and "Register or Log In" sections will fail to load due to a JavaScript error.

      The error indicates:

      Uncaught TypeError: Cannot read property 'on' of undefined at initPackages (VM152 order.js:51)
      

      This appears to be caused by a call to:

      $("#package_slider").slider({...}).on('slide', function(e) { ...});
      

      ...where the #package_slider is not in the page, and so the slider cannot be added to it.

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.5.0 Sprint 3 [ 74 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked lower
        Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Tyson Phillips (Inactive) created pull request #73 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 11 minutes [ 660 ]
        Worklog Id 11716 [ 11716 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #73 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          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:
              27/Nov/18

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 11 minutes
              11m

                Agile