Error in Browsers console after adding tabs to Quickcreate #4643

Open
opened 2026-02-20 16:21:07 -05:00 by deekerman · 7 comments
Owner

Originally created by @SinergiaCRM on GitHub (Nov 4, 2021).

Originally assigned to: @lukio on GitHub.

After setting a tab configuration in a quickcreate view of a module, it appears an error in the browser Console:
Selection_339

Issue

There is some errors regarding the use of tabs in a quickcreate view.

This error may cause other JS scripts to not execute.

Expected Behavior

There shouldn't be any error.

Actual Behavior

Error appears in console

Possible Fix

Steps to Reproduce

  1. Add a panel in the QuickCreate view of the Accounts module
  2. After saving the view, change the "Panel" to "Tab" configuration
  3. Go to the Quickcreateview of Accounts (Inside an Account, the Member Organization subpanel)
  4. Open the browser console and see the error

Context

Your Environment

SuiteCRM Version used: 7.11.21
Browser name and version: Chrome
Environment name and version (e.g. MySQL, PHP 7): PHP 7
Operating System and version (e.g Ubuntu 16.04): Ubuntu

Originally created by @SinergiaCRM on GitHub (Nov 4, 2021). Originally assigned to: @lukio on GitHub. After setting a tab configuration in a quickcreate view of a module, it appears an error in the browser Console: ![Selection_339](https://user-images.githubusercontent.com/46563429/140304087-7036bd05-be6a-43aa-8532-1ed8caf11706.png) #### Issue There is some errors regarding the use of tabs in a quickcreate view. This error may cause other JS scripts to not execute. #### Expected Behavior There shouldn't be any error. #### Actual Behavior Error appears in console #### Possible Fix - #### Steps to Reproduce 1. Add a panel in the QuickCreate view of the Accounts module 2. After saving the view, change the "Panel" to "Tab" configuration 3. Go to the Quickcreateview of Accounts (Inside an Account, the Member Organization subpanel) 4. Open the browser console and see the error #### Context - #### Your Environment SuiteCRM Version used: 7.11.21 Browser name and version: Chrome Environment name and version (e.g. MySQL, PHP 7): PHP 7 Operating System and version (e.g Ubuntu 16.04): Ubuntu
Author
Owner

@lukio commented on GitHub (Nov 3, 2022):

The problem remains at 8.x suitecrm when working with legacy layout.

@lukio commented on GitHub (Nov 3, 2022): The problem remains at 8.x suitecrm when working with legacy layout.
Author
Owner

@lukio commented on GitHub (Nov 3, 2022):

Duplicated ticket https://github.com/salesagility/SuiteCRM/issues/8780

@lukio commented on GitHub (Nov 3, 2022): Duplicated ticket https://github.com/salesagility/SuiteCRM/issues/8780
Author
Owner

@lukio commented on GitHub (Nov 3, 2022):

@SinergiaCRM I found that the name of the function selectTabOnError has been declared twice at the theme.

themes/suite8/include/DetailView/DetailView.tpl:                    let selectTabOnError = function(tab) {
themes/suite8/include/EditView/EditView.tpl:    var selectTabOnError = function(tab) {

If I change the definition of the function from let to var it does not throws the error on the javascript console.

@lukio commented on GitHub (Nov 3, 2022): @SinergiaCRM I found that the name of the function `selectTabOnError` has been declared twice at the theme. ``` themes/suite8/include/DetailView/DetailView.tpl: let selectTabOnError = function(tab) { themes/suite8/include/EditView/EditView.tpl: var selectTabOnError = function(tab) { ``` If I change the definition of the function from `let` to `var` it does not throws the error on the javascript console.
Author
Owner

@SinergiaCRM commented on GitHub (Nov 3, 2022):

Thanks @lukio. This sounds interesting. This error has been here for a while already. We will try it out.

If you are certain, you could open a PR with the proposed fix.

@SinergiaCRM commented on GitHub (Nov 3, 2022): Thanks @lukio. This sounds interesting. This error has been here for a while already. We will try it out. If you are certain, you could open a PR with the proposed fix.
Author
Owner

@lukio commented on GitHub (Nov 10, 2022):

Thanks @lukio. This sounds interesting. This error has been here for a while already. We will try it out.

If you are certain, you could open a PR with the proposed fix.

@SinergiaCRM I opened a new PR with the propoosed fix.

https://github.com/salesagility/SuiteCRM/pull/9813

@lukio commented on GitHub (Nov 10, 2022): > Thanks @lukio. This sounds interesting. This error has been here for a while already. We will try it out. > > If you are certain, you could open a PR with the proposed fix. @SinergiaCRM I opened a new PR with the propoosed fix. https://github.com/salesagility/SuiteCRM/pull/9813
Author
Owner

@SinergiaCRM commented on GitHub (Mar 20, 2023):

Hi @lukio it seems that the problem persists in the latest version. Could it be due to something else?
image

@SinergiaCRM commented on GitHub (Mar 20, 2023): Hi @lukio it seems that the problem persists in the latest version. Could it be due to something else? ![image](https://user-images.githubusercontent.com/61022311/226420189-65ca145e-37d5-4aeb-b814-646dcf1c68b1.png)
Author
Owner

@SinergiaCRM commented on GitHub (Oct 23, 2023):

@jack7anderson7 , I reopened this issue again. The error continues to occur with the change in the definition of the function selectTabOnError from let to var.
image

@SinergiaCRM commented on GitHub (Oct 23, 2023): @jack7anderson7 , I reopened this issue again. The error continues to occur with the change in the definition of the function `selectTabOnError` from `let` to `var`. ![image](https://github.com/salesagility/SuiteCRM/assets/61022311/f42adbd9-3076-43ec-831f-d704a0298b94)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4643
No description provided.