{"action":"created","issue":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/246","labels_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/246/comments","events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/246/events","html_url":"https://github.com/moderntribe/the-events-calendar/pull/246","id":99295085,"number":246,"title":"Fix #36153 issue where _EventCost would not update when tickets updated","user":{"login":"elimn","id":2893625,"avatar_url":"https://avatars.githubusercontent.com/u/2893625?v=3","gravatar_id":"","url":"https://api.github.com/users/elimn","html_url":"https://github.com/elimn","followers_url":"https://api.github.com/users/elimn/followers","following_url":"https://api.github.com/users/elimn/following{/other_user}","gists_url":"https://api.github.com/users/elimn/gists{/gist_id}","starred_url":"https://api.github.com/users/elimn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elimn/subscriptions","organizations_url":"https://api.github.com/users/elimn/orgs","repos_url":"https://api.github.com/users/elimn/repos","events_url":"https://api.github.com/users/elimn/events{/privacy}","received_events_url":"https://api.github.com/users/elimn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/labels/merge","name":"merge","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"bordoni","id":236579,"avatar_url":"https://avatars.githubusercontent.com/u/236579?v=3","gravatar_id":"","url":"https://api.github.com/users/bordoni","html_url":"https://github.com/bordoni","followers_url":"https://api.github.com/users/bordoni/followers","following_url":"https://api.github.com/users/bordoni/following{/other_user}","gists_url":"https://api.github.com/users/bordoni/gists{/gist_id}","starred_url":"https://api.github.com/users/bordoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bordoni/subscriptions","organizations_url":"https://api.github.com/users/bordoni/orgs","repos_url":"https://api.github.com/users/bordoni/repos","events_url":"https://api.github.com/users/bordoni/events{/privacy}","received_events_url":"https://api.github.com/users/bordoni/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-05T20:46:15Z","updated_at":"2015-08-06T12:01:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/246","html_url":"https://github.com/moderntribe/the-events-calendar/pull/246","diff_url":"https://github.com/moderntribe/the-events-calendar/pull/246.diff","patch_url":"https://github.com/moderntribe/the-events-calendar/pull/246.patch"},"body":"This function is only called when via an ajax request when a user edits a ticket while editing an event. A separate function updates these fields when the page is POSTed (The user clicks the Update button). That function worked flawlessly, but this called via ajax did not.\r\n\r\nI am not sure what the code was supposed to do before, why there was an array shift nor why we had a $base_cost variable. However, the filter 'tribe_events_event_costs' is only applied in one other place in all of our plugins, and in that place it passes an empty array exactly like this now does. Now that there are no values passed, it behaves as expected and never has a duplicate value."},"comment":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/comments/128342995","html_url":"https://github.com/moderntribe/the-events-calendar/pull/246#issuecomment-128342995","issue_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/246","id":128342995,"user":{"login":"bordoni","id":236579,"avatar_url":"https://avatars.githubusercontent.com/u/236579?v=3","gravatar_id":"","url":"https://api.github.com/users/bordoni","html_url":"https://github.com/bordoni","followers_url":"https://api.github.com/users/bordoni/followers","following_url":"https://api.github.com/users/bordoni/following{/other_user}","gists_url":"https://api.github.com/users/bordoni/gists{/gist_id}","starred_url":"https://api.github.com/users/bordoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bordoni/subscriptions","organizations_url":"https://api.github.com/users/bordoni/orgs","repos_url":"https://api.github.com/users/bordoni/repos","events_url":"https://api.github.com/users/bordoni/events{/privacy}","received_events_url":"https://api.github.com/users/bordoni/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T12:01:53Z","updated_at":"2015-08-06T12:01:53Z","body":"@elimn don't forget to label it as _\"Code Review\"_"}}