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

Security Suite Record Group selector doesn't appear when duplicating records #9717

Closed
SinergiaCRM opened this issue Aug 1, 2022 · 0 comments
Labels
Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase

Comments

@SinergiaCRM
Copy link
Contributor

SinergiaCRM commented Aug 1, 2022

When the option to select a Security Suite Group when creating a record is enabled:
Selection_625
The group selector appears in the EditView of the new record:
Selection_624

Although, when duplicating a record, in the Editview of the new record, the selector doesn't appear.

Issue

The Security Suite group selector doesn't appear when duplicating records

Expected Behavior

Security Suite Group selector should appear as in any other record creation

Actual Behavior

The selector doesn't appear, then the groups can't be selected.

Possible Fix

Add the condition to allow appearing the box on duplicating fields:

&& empty($this->focus->fetched_row['id']) && $this->focus->module_dir != "Users" && $this->focus->module_dir != "SugarFeed") {

&& (empty($this->focus->fetched_row['id']) || $_REQUEST['isDuplicate'] == true) && $this->focus->module_dir != "Users" && $this->focus->module_dir != "SugarFeed") {

Steps to Reproduce

  1. Create several Security Suite Groups
  2. Add those Groups to a User
  3. Enable de Security Suite Setting "Use Creator Group Select"
  4. Create a record with that user and check that the Group selector appears
  5. Duplicate a record and check that the Group selector doesn't appear.

Context

This can be troublesome if the Security Suite is used intensively.

Your Environment

SuiteCRM Version used: Version 7.12.6
Browser name and version: Versión 100.0.4896.88 (Build oficial) (64 bit
Environment name and version: MySQL, PHP 7
Operating System and version: Ubuntu 20.04

AlbertoSTIC pushed a commit to SinergiaTIC/SuiteCRM that referenced this issue Aug 1, 2022
@johnM2401 johnM2401 added Type: Bug Bugs within the core SuiteCRM codebase Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds labels Aug 8, 2022
mattlorimer pushed a commit that referenced this issue Dec 15, 2022
pgorod pushed a commit to pgorod/SuiteCRM that referenced this issue Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants