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

Fix #10446 - Resolve issue preventing link creation in Security Groups sub-panels #10447

Open
wants to merge 1 commit into
base: hotfix
Choose a base branch
from

Conversation

gaspare-joubert
Copy link
Contributor

Description

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.

Motivation and Context

This will fix a bug where you are unable to make selections using Security Groups sub-panels.

How To Test This

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'

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

…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.
Copy link
Member

@mattlorimer mattlorimer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

@serhiisamko091184
Copy link
Contributor

Hello @gaspare-joubert,

thanks for your contribution!

Regards,
Serhii

@serhiisamko091184 serhiisamko091184 added Branch:Hotfix Area:Relationships Issues & PRs related to all things regarding to Relationships Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member PR 4-8 Score given to PRs once assessed Status: Requires Testing Requires Manual Testing labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Relationships Issues & PRs related to all things regarding to Relationships Branch:Hotfix PR 4-8 Score given to PRs once assessed Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member Status: Requires Testing Requires Manual Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants