Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow scheduler relationship issue #8682

Closed
JackBuchanan opened this issue Apr 29, 2020 · 0 comments
Closed

Workflow scheduler relationship issue #8682

JackBuchanan opened this issue Apr 29, 2020 · 0 comments
Labels
Area: Workflow Issues & PRs related to all things regarding workflow Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type:Bug Bugs within the core SuiteCRM codebase

Comments

@JackBuchanan
Copy link
Contributor

Issue

Query fails for workflow when condition is based on a studio made relationship when run in scheduler

Expected Behavior

Workflow should run as expected

Actual Behavior

Workflow fails to run

Possible Fix

Steps to Reproduce

  1. Create a relation on Calls module with type one to many to Opportunities module
  2. Go to Workflow module and create new Workflow on Opportunities module
  3. Add condition on module Opportunities and field Calls to be equal to empty
  4. Run scheduler
  5. See fails query in logs: Query Failed: SELECT opportunities.id AS id FROM opportunities WHERE opportunities.calls_opportunities_1calls_ida = '' AND opportunities.deleted = 0 : MySQL error 1054: Unknown column 'opportunities.calls_opportunities_1calls_ida' in 'where clause'

The query fails because the relation is not taken into an account.

Context

Cann use scheduler for workflow

Your Environment

  • SuiteCRM Version used: 7.10.25
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): chrome lastest
  • Environment name and version (e.g. MySQL, PHP 7): MySQL, PHP7.2
  • Operating System and version (e.g Ubuntu 16.04): ubuntu 18.04
JackBuchanan added a commit to JackBuchanan/SuiteCRM that referenced this issue Apr 29, 2020
Add join to related module in query when run
@samus-aran samus-aran added Area: Workflow Issues & PRs related to all things regarding workflow Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Type:Bug Bugs within the core SuiteCRM codebase Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution labels Jul 28, 2020
jack7anderson7 pushed a commit to JackBuchanan/SuiteCRM that referenced this issue Mar 17, 2023
Add join to related module in query when run
jack7anderson7 pushed a commit to JackBuchanan/SuiteCRM that referenced this issue Mar 29, 2023
Add join to related module in query when run
jack7anderson7 pushed a commit to JackBuchanan/SuiteCRM that referenced this issue Jun 22, 2023
Add join to related module in query when run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Workflow Issues & PRs related to all things regarding workflow Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type:Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants