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

New User Group Popup. Popup does not show after creating a user #9780

Closed
QuickCRM opened this issue Sep 29, 2022 · 8 comments
Closed

New User Group Popup. Popup does not show after creating a user #9780

QuickCRM opened this issue Sep 29, 2022 · 8 comments
Labels
Hacktoberfest Issues & PRs that count towards Hacktoberfest

Comments

@QuickCRM
Copy link
Contributor

Issue

When New User Group Popup is checked, a popup is supposed to open when a user is created so that you can select a security group.
It used to work, but no longer works with latest versions of SuiteCRM 10, 11 and 12.
The browser console shows
TypeError: null is not an object (evaluating 'win.focus')
in open_popup function.

Expected Behavior

A popup should open

Actual Behavior

It does not and a javaScript error happens

Possible Fix

Steps to Reproduce

  1. make sure New User Group Popup in Security Suite settings
    2.Create a user

Context

Make sure all new users are assigned a security group

Your Environment

  • SuiteCRM Version used: 7.10, 7.11, 7.12
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome, Safari
  • Environment name and version (e.g. MySQL, PHP 7): any
  • Operating System and version (e.g Ubuntu 16.04): Ubuntu
@gemartin21 gemartin21 added the Hacktoberfest Issues & PRs that count towards Hacktoberfest label Oct 5, 2022
@urdhvatech
Copy link
Contributor

In Chrome browser if popup is blocked, then window opens successfully. Looks like window.open is considered as popup, and popup is blocked.
If you disable popup blocker of chrome browser, It will work as expected.

@QuickCRM
Copy link
Contributor Author

QuickCRM commented Oct 6, 2022

That's not it.
Popups are not blocked (for example, you can open a popup to select an account in a contact edit view).
This issue is specific to selecting a security group after creating a user.
The browser shows a javascript error:
TypeError: null is not an object (evaluating 'win.focus')

@urdhvatech
Copy link
Contributor

urdhvatech commented Oct 6, 2022

Yes, After creating user the security group executes the javascript, which you have mentioned that doesn't work when Popup is blocked.
I will do the PR in a day or so.

@QuickCRM
Copy link
Contributor Author

QuickCRM commented Oct 6, 2022

I changed the browser settings to authorize popups.
It works now, but I can't understand why this popup was blocked while other popups were not (select any relate field on any module).

@viku3150
Copy link

viku3150 commented Oct 6, 2022

Instead of a popup can we have a modal for the same? In this case whatever be the case, there's no blocking

@urdhvatech
Copy link
Contributor

From version 8, It is now modal box.

urdhvatech added a commit to urdhvatech/SuiteCRM that referenced this issue Oct 10, 2022
New User Group Popup. Popup does not show after creating a user
urdhvatech added a commit to urdhvatech/SuiteCRM that referenced this issue Oct 10, 2022
Fixed applied at source file for salesagility#9780
@SuiteBot
Copy link

This issue has been mentioned on SuiteCRM. There might be relevant details there:

https://community.suitecrm.com/t/hacktoberfest-2022/86484/2

jack7anderson7 pushed a commit to urdhvatech/SuiteCRM that referenced this issue Oct 14, 2022
@himanshu007-creator
Copy link

Hi, i would like to work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest Issues & PRs that count towards Hacktoberfest
Projects
None yet
Development

No branches or pull requests

6 participants