Forum Replies Created
-
AuthorPosts
-
marthamcevoyParticipant
Make that “free (4.2.5) and pro (v 4.2.4) versions”
marthamcevoyParticipantAlso, the problem occurs in both the free (4.3.5) and pro (v 4.2.4) versions.
marthamcevoyParticipantNote that there is a similar problem assigning Organizers to events.
marthamcevoyParticipantThis issue is also being discussed here:
I believe there are 2 problems:
First, note that for events that do not have a venue attached there is an entry in the postmeta table for key ‘EventVenueID’ with a value of 0.
Version 4.2.5
file: the-events-calendar/src/Tribe/Linked_Posts.phpIssue #1:
at line 690:
$currently_linked_posts = $this->get_linked_posts_by_post_type( $event_id, $linked_post_type );get_linked_posts_by_post_type() returns an array that contains the post number for the venue to be added, even though it has not yet been written to the DB. So, the code thinks it’s already there and does not add it to the DB.
Issue #2:
at line 547:
In addition to writing the new venue id to the postmeta table, the code needs to remove the pre-existing EventVenueID rows. However, when there is a row with value 0 the unlink_post() function doesn’t remove it because 0 is not a valid venue post. -
AuthorPosts