Workflow condition with related entity on date field type doesn't save the date value #5020

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

Originally created by @re8260 on GitHub (May 24, 2023).

Issue

When you have condition on related entity on field of type date, condition will always fail because it save incorrect value and the date value will be removed from UI.
image
The selected date saved as string and can not be parsed letter
I will add example for Account and Call but it will work for any modules .
Don't check on fields Created and Modified date because it exists in all modules and will save correct

Expected Behavior

The value should be save as date

Actual Behavior

Date value should be saved as date

Possible Fix

Need to pas the related entity to function that parse value before save is

Steps to Reproduce

  1. Crate new workflow on module Account (can be any other module)
  2. In condition select related module I will use Calls (can be any other module) select date field, TYPE=VALUE and pick a date
    image
  3. Save workflow
    image

Context

Your Environment

  • SuiteCRM Version used: Version 7.13.3
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)):
  • Environment name and version (e.g. MySQL, PHP 7):
  • Operating System and version (e.g Ubuntu 16.04):

Context

Not possible to create conditions on date fields of related modules

Originally created by @re8260 on GitHub (May 24, 2023). <!--- Provide a general summary of the issue in the **Title** above --> <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> <!--- If you have discovered a security risk please report it by emailing security@suitecrm.com. This will be delivered to the product team who handle security issues. Please don't disclose security bugs publicly until they have been handled by the security team. ---> <!--- Please be aware that as of the 31st January 2022 we no longer support 7.10.x. New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above. If your issue is still applicable in 7.12.x, please create the issue following the template below --> #### Issue When you have condition on related entity on field of type date, condition will always fail because it save incorrect value and the date value will be removed from UI. ![image](https://github.com/salesagility/SuiteCRM/assets/18328936/bbc9c33b-9a27-4e96-9e6e-432ab0a2f10d) The selected date saved as string and can not be parsed letter I will add example for Account and Call but it will work for any modules . Don't check on fields Created and Modified date because it exists in all modules and will save correct #### Expected Behavior The value should be save as date #### Actual Behavior Date value should be saved as date #### Possible Fix Need to pas the related entity to function that parse value before save is #### Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug include code to reproduce, if relevant --> 1. Crate new workflow on module Account (can be any other module) 2. In condition select related module I will use Calls (can be any other module) select date field, TYPE=VALUE and pick a date ![image](https://github.com/salesagility/SuiteCRM/assets/18328936/8579bcde-d0db-492f-8cb8-ea6cc16b850d) 3. Save workflow ![image](https://github.com/salesagility/SuiteCRM/assets/18328936/411eb4dc-90f6-47ce-ac49-b9e5240bf7d0) #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- If you feel this should be a low/medium/high priority then please state so --> #### Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * SuiteCRM Version used: Version 7.13.3 * Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): * Environment name and version (e.g. MySQL, PHP 7): * Operating System and version (e.g Ubuntu 16.04): #### Context Not possible to create conditions on date fields of related modules
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#5020
No description provided.