salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.53k stars 2.09k forks source link

Error when changing relationships - Undefined constant "view_module" in parser.label.php:279 #10535

Open sy-subrc opened 1 month ago

sy-subrc commented 1 month ago

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

johnM2401 commented 1 month ago

Hey! Thank you for raising this.

Just to let you know, I've transfered this issue over to the SuiteCRM repo as this issue is replicable in SuiteCRM7 too. (Meaning, when resolved here, the fix will be pulled into both SuiteCRM7 and SuiteCRM8)

Thank you again!

sy-subrc commented 1 month ago

Hi, thank you for your quick response. I am happy that the error is reproducible.