Skip to content

Report Module Ignores 'reportable: false' Setting #10665

Open
@desarrollador20

Description

@desarrollador20

Issue

Despite Adding 'reportable: false' to an AOS_Invoices Field to Exclude It from the Reports Module (via public/legacy/custom/modules/AOS_Invoices/Ext/Vardefs/vardefs.ext.php), It Still Appears as a Selectable Field

Possible Fix

In the file public/legacy/modules/AOW_WorkFlow/aow_utils.php, add the following inside the foreach loop:


![Image](https://github.com/user-attachments/assets/af0a8a75-efb3-43f6-ba33-ac005d1d749c)

if (isset($_GET['module']) && $_GET['module'] == 'AOR_Reports' && isset($arr['reportable']) && $arr['reportable'] === false) {
    continue;
}

This change ensures that the field has the reportable property and considers the originating module, as this function is used not only for reports but also for workflows.

Steps to Reproduce the Issue

1) Add the property **reportable: false** to a field in **AOS_Invoices**.  
2) Attempt to include that field from the **Reports** module.

Context

Not all fields must appear to be used in reports

Version

8.8.0

What browser are you currently using?

Chrome

Browser Version

Chrome - Version 131.0.6778.264 (Official Build) (64-bit)

Environment Information

PHP 8.3.17

Operating System and Version

Ubuntu 22.04.4 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ReportsIssues & PRs related to all things regarding reportsPriority:ImportantIssues & PRs that are important; broken functions, errors - there are workaroundsSeverity: ModerateKey function failed, but no or little impactType: BugBugs within the core SuiteCRM codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions