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

Update Expired Tickets Snippet to work with CPT Changes #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tn3rb
Copy link
Member

@tn3rb tn3rb commented Mar 25, 2024

  • fixes the templates/de_ee_filter_events_out_with_expired_tickets.php snippet so that it doesn't add a join to the datetimes table if one already exists

@tn3rb tn3rb self-assigned this Mar 25, 2024
@tn3rb tn3rb requested a review from Pebblo March 25, 2024 18:13
$tickets_table = EEM_Ticket::instance()->table();
$tickets_table_pk = EEM_Ticket::instance()->primary_key_name();
if (
strpos($SQL, $dates_table) === false
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the primary chnage that was required to fix this snippet,
the rest of the changes are just code cleanup

Check for each table before adding a JOIN statement;
Copy link
Member

@Pebblo Pebblo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add some additional conditionals into this, the changes @tn3rb made work but needed a little more of the same thing.

@tn3rb can you double check those plz?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants