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

[REF] Remove early return on joinTable #15718

Merged
merged 1 commit into from Nov 4, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Minor code cleanup - removes 2 unnecessary things

  1. use of reference on $ids
  2. a check that doesn't make sense here

Before

Code more confusing

After

Code less confusing

Technical Details

I looked up the reason for the early return here and it was that the UI for adding other tables
in was too complex. In other words the removed lines should never be true.

However, I don't think it's the place of the query object to enforce not attempting a query the
UI struggles with. Removing this will save a later person having to figure that out.

Re $ids - it's never used again so does not need to be a reference

Comments

_

I looked up the reason for the early return here and it was that the UI for adding other tables
in was too complex. In other words the removed lines should never be true.

However, I don't think it's the place of the query object to enforce not attempting a query the
UI struggles with. Removing this will save a later person having to figure that out
@civibot civibot bot added the master label Nov 4, 2019
@civibot
Copy link

civibot bot commented Nov 4, 2019

(Standard links)

@seamuslee001
Copy link
Contributor

Change is fine by me merging

@seamuslee001 seamuslee001 merged commit b8725d6 into civicrm:master Nov 4, 2019
@seamuslee001 seamuslee001 deleted the custom_query_fix branch November 4, 2019 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants