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

Domain Manager: TLD pricing modal fails to load on multi-language installation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0-b2
    • Fix Version/s: 5.1.0
    • Component/s: None
    • Labels:
      None

      Description

      To reproduce:

      • Install a second language
      • Try to open a tld pricing modal
      • Encounter js error

      VM144:175 Uncaught SyntaxError: Identifier 'ck_editor' has already been declared
      at b (jquery.min.js:2)
      at Pe (jquery.min.js:2)
      at s.fn.init.append (jquery.min.js:2)
      at s.fn.init.<anonymous> (jquery.min.js:2)
      at $ (jquery.min.js:2)
      at s.fn.init.html (jquery.min.js:2)
      at e.z._update (jquery.qtip.min.js:3)
      at e.z._updateContent (jquery.qtip.min.js:3)
      at e.^content.text$ (jquery.qtip.min.js:3)
      at e.j (jquery.qtip.min.js:3)

      The problem line is identified as

      const ck_editor = document.querySelector('#edit_tld_net #email_content_es_es .email_content_html .ck-editor__editable');

      Looks like we should change plugins/domains/views/default/admin_domains_pricing.pdt around line 435 and 436 to change 'const' to 'var'

        Activity

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.2.0 Sprint 1 [ 137 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Assignee Jonathan Reissmueller [ jonathan ]
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 15 minutes [ 900 ]
        Worklog Id 15069 [ 15069 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              6/Jul/21

              Time Tracking

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

                Agile