mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
SUGAR.mySugar.toggleDashletCategories not working when selecting categories on dashlet v7.9.8 #2607
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#2607
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rebbieboi on GitHub (Jan 12, 2018).
Issue
When you add a new dashlet you cannot navigate on the categories as they do nothing when clicked. No console errors.
Expected Behavior
When you navigate on the dashlet categories it should open the tabs for the new categories
Actual Behavior
Clicking on the new categories tab does nothing
Possible Fix
I'm still trying to find the cause of this problem my self. But what seems to work is if you add a dashlet from the default category (Modules) the other categories (Chart, Tools, Web) will become clickable and work as expected but it does not always happen.
Steps to Reproduce
Context
This severely limits the usability of the dashlets
Your Environment
@rebbieboi commented on GitHub (Jan 12, 2018):
Found the problem:
The problem was that another element was being created that shares the id name for the categories.
So there are now two elements that have the same ID so the code found on include/MySugar/javascript will not work
Find this block:
Replace with:
I have no idea what that is for but if there is a better approach here please let me know so that I can apply it.
Thank you
@PedroErnst commented on GitHub (Jan 15, 2018):
Hello @rebbieboi , thanks for reporting this issue.
I'm going to need your help here because I'm not able to replicate the problem.
Are you using any kind of add-ons or custom modules which could be causing this conflict?
In principle the solution for this problem is to eliminate duplicate ids. Ids should be unique in the DOM, anything else is bound to produce undefined behavior at some point.
@rebbieboi commented on GitHub (Jan 16, 2018):
This is the element that copies the dashlet modal with ID's:
<div class="yui-panel-container yui-dialog shadow" id="dashletsDialog_c" style="visibility: visible; left: 957px; top: 295px; z-index: 4;"><div id="dashletsDialog" style="visibility: inherit; width: 480px; height: 520px;" class="yui-module yui-overlay yui-panel">This is the dashlet modal:
<div class="modal fade modal-add-dashlet in" tabindex="-1" role="dialog" style="display: block; padding-right: 12px;">I just started working on this project so I'm not sure if they had some plugins installed.
I hope this helps you out. 👍
@PedroErnst commented on GitHub (Jan 18, 2018):
Thanks, I'm still not able to reproduce this. We will keep looking into it.
@PedroErnst commented on GitHub (Jun 22, 2018):
@Dillon-Brown should this still be marked as a High Priority?
A) It's a now unsupported version
B) It's been reported by a single user once, and not been reproduced as far as I can tell
@pgorod commented on GitHub (Jun 22, 2018):
I think we should just close it, and when @rebbieboi upgrades to 7.10.x he can reopen it, if the issue is still present, but only if he can confirm that there are no add-ons in his system that could be causing this conflict.
@rebbieboi commented on GitHub (Jun 22, 2018):
I'll just close this since my temp fix is working fine. :) I'm sure you have bigger problems to deal with anyway.