Skip to content

Status field is dependent on state field but it not responding to changes #323

Closed
@yunusyerli1

Description

@yunusyerli1

Issue

he status field in the Cases module is showing all values no matter what value is selected in the State field.

Expected Behavior

“New” and “In progress” Status drop-down values will be displayed when the State field is set to “Open”.
“Resolved” and “Cancelled” Status field drop-down values will be displayed when the State field is set to “Closed”.

Actual Behavior

The status field in the Cases module is showing all values no matter what value is selected in the State field.

Possible Fix

checkAndInitAsDynamicEnum() method need to be added to dropdownenum.component. Because the method checks the values depending on a dependant field.

Steps to Reproduce

  1. In base-field.manifest.ts file change following:
    From :
    'enum.detail': EnumDetailFieldComponent,
    'enum.edit': EnumEditFieldComponent,
    To:
    'enum.detail': DropdownEnumDetailFieldComponent,
    'enum.edit': DropdownEnumEditFieldComponent,
  2. In editview, select State and check Status field. You ll see all values.
    3.Select another value in State, and still you will see all the values

Context

Status needs to be dynamic dependent on State field. This is a low priority.

Your Environment

  • SuiteCRM Version used: 8.3.0
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome Version 115.0.5790.171 (64-bit)
  • Environment name and version (e.g. MySQL, PHP 7): Wamp Server, PHP 7.4.33, MariaDB 10.4.12
  • Operating System and version (e.g Ubuntu 16.04): Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: FrontendPriority:ImportantIssues & PRs that are important; broken functions; errors; there are workaroundsStatus: Fix ProposedA issue that has a PR related to it that provides a possible resolutionStatus:Requires UpdatesIssues & PRs which requires input or update from the authorType: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions