Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick create form tabs on project detail view subpanels do not work #8780

Closed
SinergiaCRM opened this issue Jun 17, 2020 · 3 comments
Closed
Labels
Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds Type: Bug Bugs within the core SuiteCRM codebase

Comments

@SinergiaCRM
Copy link
Contributor

SinergiaCRM commented Jun 17, 2020

Issue

If a quick creation form contains multiple tabs, is not possible switch between them, if it is in any subpanel of the Project module detail view.
The error does not occur when opening the same quickcreate form in another module.
Apparently there is a javascript error that prevents switching between tabs. The browser console shows the following information:

error adding script
sugar_grp1.js?v=_4iGDDL7V2JzxREFEHma0A:436 SyntaxError: Identifier 'selectTabOnError' has already been declared
    at eval (eval at <anonymous> (sugar_grp1.js?v=_4iGDDL7V2JzxREFEHma0A:428), <anonymous>:1:1)
    at eval (<anonymous>)
    at sugar_grp1.js?v=_4iGDDL7V2JzxREFEHma0A:428
    at Object.globalEval (sugar_grp1.js?v=_4iGDDL7V2JzxREFEHma0A:428)
    at Object.evalScript (sugar_grp1.js?v=_4iGDDL7V2JzxREFEHma0A:435)
    at Object.success (SubPanelTiles.js?v=_4iGDDL7V2JzxREFEHma0A:100)
    at Object.handleTransactionResponse (sugar_grp1_yui.js?v=_4iGDDL7V2JzxREFEHma0A:109)
    at sugar_grp1_yui.js?v=_4iGDDL7V2JzxREFEHma0A:109

This happens in the same way if the quickcreate form is from a SuiteCRM own module or a custom module

Expected Behavior

It should be possible to switch between tabs.

Actual Behavior

It is not possible to switch between tabs in a subpanel of the Projects module

Possible Fix

Steps to Reproduce

  1. Under studio, modify the quickcreate layout of the Tasks module so that the fields are distributed in two or more tabs (not panels).
  2. Open a Project record in detail view.
  3. In the Activities subpanel, create a new task by clicking on Create Tasks.
  4. Try to switch between the tabs of the quickcreate form. It does not work.

If the test is performed with a subpanel of another stock or custom module, the error will still occur

Context

Some custom modules contain many fields and it is necessary to distribute the information in tabs.

Your Environment

SuiteCRM Version used: 7.11.11 (and SugarCRM 6.5)
Browser name and version: Chrome 83.0.4103 and Firefox 77.0.1 (64-bit)
Environment name and version: PHP 7.3, MySQL
Operating System and version: Debian 9

@samus-aran samus-aran added Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds Type: Bug Bugs within the core SuiteCRM codebase labels Jul 28, 2020
@ghost
Copy link

ghost commented Feb 14, 2022

When AJAX UI Enabled tabs don't work in subpanels anywhere.

@SinergiaCRM
Copy link
Contributor Author

Duplicated

@Esteban200589
Copy link

For me
I am getting this error in the AOS_Products module
when creating a new record in one of the sub-panels (currently there are two) with quick create view
I've created a custom module and made a relationship between aos_products and the custom module, but it doesn't just happen on the quickcreate of that module.
It also happens in the quick create of the other subpanels.
I don't have tabs in quick create and there aren't many fields.

In the metadata/quickcreatedefs.php I included a js:
'includes' =>
array(
0 =>
array(
'file' => 'custom/modules/infor_components/quickcreate.js',
),
),

but remove this to see if it messed with the problem and no consequence

I need help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Moderate Issues & PRs that are minor; broken styling, cosmetic, warnings - there are practical workarounds Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

3 participants