Error when displaying the messages of requirements on password updating #9033
Labels
Area: Module
Issues & PRs related to modules that do not have specific label
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
With the following settings enabled in password management:
When creating or updating a user's password, if the above requirements are not met, the CRM tries to show notifications to the user but a javascript error occurs.
Expected Behavior
The CRM should have displayed the messages of:
Actual Behavior
The following javascript error occurs:
Failed to launch 'location:%20index.php?action=EditView&module=Users&record=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' because the scheme does not have a registered handler.
Possible Fix
In the file: modules/Users/User.php, remove the string "Location: " from the method SugarApplication::redirect (Lines 687, 715 and 719)
Steps to Reproduce
Context
Detected while trying to modify the password of a non-administrator user from an administrator user
Your Environment
The text was updated successfully, but these errors were encountered: