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

Allow Joinables to be added to tables without specifying a base column #24993

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

aydun
Copy link
Contributor

@aydun aydun commented Nov 17, 2022

Overview

When using APIv4 Calculated Fields, it is sometimes necessary to add a Joinable to a table without specifying a base column using $table->addTableLink(NULL, $joinable)

Before

This results in an invalid and unneeded join condition resulting a MySQL error.

After

No errors, correct join.

Technical Details

Comments

As discussed here: https://chat.civicrm.org/civicrm/pl/bkguwjgiyjndzefye954w8pn9y

@civibot
Copy link

civibot bot commented Nov 17, 2022

(Standard links)

@civibot civibot bot added the master label Nov 17, 2022
@aydun
Copy link
Contributor Author

aydun commented Nov 17, 2022

@colemanw

@colemanw
Copy link
Member

Looks good

@colemanw colemanw merged commit 2cd552f into civicrm:master Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants