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

Unable to create link in Security Groups custom modules sub-panels #10446

Open
gaspare-joubert opened this issue Jun 13, 2024 · 0 comments
Open
Labels
Type: Bug Bugs within the core SuiteCRM codebase

Comments

@gaspare-joubert
Copy link
Contributor

Issue

Unable to create a link to a custom module in the Security Groups sub-panel by using the 'Create' button's 'Select' option.
This is a bug.
When selecting a custom module, a link to this module should be added to the sub-panel's list view.

Possible Fix

In data/Relationships/M2MRelationship.php a check must be done in the add() function, before trying to add the bean object to the bean's link property. It needs to be a Link2 instance.

Steps to Reproduce the Issue

1.Open the Security groups module ui
2.Use the 'Create' button's 'Select' option on any custom module
3.In the pop-up window select a single or multiple options using the checkbox
4.Click 'Select'
...

Context

No response

Version

7.12.8

What browser are you currently using?

Chrome

Browser Version

Version 125.0.6422.141 (Official Build) (64-bit)

Environment Information

MySQL, PHP7.4

Operating System and Version

Ubuntu 22.04.4 LTS

@gaspare-joubert gaspare-joubert added the Type: Bug Bugs within the core SuiteCRM codebase label Jun 13, 2024
gaspare-joubert added a commit to gaspare-joubert/SuiteCRM that referenced this issue Jun 14, 2024
…curity Groups sub-panels

This commit addresses an issue where related custom module items couldn't be selected via sub-panels. The problem occurred when the bean with the relationship link property was empty and not an instance of Link2.

The root cause was identified within the Link2 class's add() function, specifically when the getSide() method returns 'RHS'. This situation arose when either the 'RHS' or 'LHS' was set to 'SecurityGroup' in the M2MRelationship add() function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

1 participant