Customized class ignored in custom directory #4997

Open
opened 2026-02-20 16:27:36 -05:00 by deekerman · 0 comments
Owner

Originally created by @ViralAgency on GitHub (Apr 18, 2023).

Hello everyone,
I'm looking for someone to help me understand why my customized default class (Lead.php) in the /custom/module/Leads folder is not considered by SuiteCRM 7 despite the documentation says that this is the correct way to proceed with the upgrades, while, left in place, it works correctly.

What is the correct way to upgrade safe while keeping the custom classes?

Expected Behavior

According to the documentation, poor in this regard, the file should replace the one present in the default module.

Actual Behavior

The framework works correctly but the changes in the folder /custom/modules/Leads/Lead.php are not performed.

Possible Fix

Include /custom/modules/ files in rebuild and repair.

Steps to Reproduce

  1. Try to customize any default class
  2. Move that class into corresponding folder in /custom/modules/
  3. Perform the Quick repair
  4. Check if the code is executed

Context

I try to perform a Safe Upgrade.
My opinion is that this bug has medium relevance.

Your Environment

Docker Container with Ubuntu 22.04
Apache Webserver
PHP 7.4
SuiteCRM 7.13
Chrome

Originally created by @ViralAgency on GitHub (Apr 18, 2023). Hello everyone, I'm looking for someone to help me understand why my customized default class (Lead.php) in the /custom/module/Leads folder is not considered by SuiteCRM 7 despite the documentation says that this is the correct way to proceed with the upgrades, while, left in place, it works correctly. What is the correct way to upgrade safe while keeping the custom classes? #### Expected Behavior According to the documentation, poor in this regard, the file should replace the one present in the default module. #### Actual Behavior The framework works correctly but the changes in the folder /custom/modules/Leads/Lead.php are not performed. #### Possible Fix Include /custom/modules/ files in rebuild and repair. #### Steps to Reproduce 1. Try to customize any default class 2. Move that class into corresponding folder in /custom/modules/ 3. Perform the Quick repair 4. Check if the code is executed #### Context I try to perform a Safe Upgrade. My opinion is that this bug has medium relevance. #### Your Environment Docker Container with Ubuntu 22.04 Apache Webserver PHP 7.4 SuiteCRM 7.13 Chrome
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4997
No description provided.