Error when changing relationships - Undefined constant "view_module" in parser.label.php:279 #10535
Labels
Area: Studio
Issues & PRs related to all things regarding studio & module builder
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little impact
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
The attempt to change a relationship in SuiteCRM Studio ends with the error message “An error has occurred”.
This error message appears when you try to change any relationship.
There is no indication of this error in SuiteCRM-Log.
The following error message appears in the Apache/PHP log each time a change is attempted
PHP Fatal error: Uncaught Error: Undefined constant "view_module" in /suitecrm/public/legacy/modules/ModuleBuilder/parsers/parser.label.php:279
Possible Fix
If I deactivate the bug fix contained in the file public/legacy/modules/ModuleBuilder/parsers/parser.label.php (Lines 278-382), changes to relationships can be posted again without errors.
Steps to Reproduce the Issue
The error probably occurs after the creation of custom modules (in the system in which the error occurs, the German language is also installed) 1. creation of a custom module 2. creation of relationships between custom modules and standard SuiteCRM modules 3. change of any relationship leads to an error message
Context
The error occurred again after creating a custom module via the Module Builder. The custom module has relationships to standard SuiteCRM modules.
Version
8.6.2
What browser are you currently using?
Chrome
Browser Version
No response
Environment Information
mysql Ver 15.1 Distrib 10.11.9-MariaDB, for Linux (x86_64), PHP Version => 8.2.20
Operating System and Version
openSUSE Leap 15.6
The text was updated successfully, but these errors were encountered: