{"action":"opened","issue":{"url":"https://api.github.com/repos/boxbilling/boxbilling/issues/264","labels_url":"https://api.github.com/repos/boxbilling/boxbilling/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/boxbilling/boxbilling/issues/264/comments","events_url":"https://api.github.com/repos/boxbilling/boxbilling/issues/264/events","html_url":"https://github.com/boxbilling/boxbilling/issues/264","id":57963956,"number":264,"title":"Public ticket staff issue","user":{"login":"hostingseguro","id":11048951,"avatar_url":"https://avatars.githubusercontent.com/u/11048951?v=3","gravatar_id":"","url":"https://api.github.com/users/hostingseguro","html_url":"https://github.com/hostingseguro","followers_url":"https://api.github.com/users/hostingseguro/followers","following_url":"https://api.github.com/users/hostingseguro/following{/other_user}","gists_url":"https://api.github.com/users/hostingseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/hostingseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hostingseguro/subscriptions","organizations_url":"https://api.github.com/users/hostingseguro/orgs","repos_url":"https://api.github.com/users/hostingseguro/repos","events_url":"https://api.github.com/users/hostingseguro/events{/privacy}","received_events_url":"https://api.github.com/users/hostingseguro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-17T18:44:28Z","updated_at":"2015-02-17T18:44:28Z","closed_at":null,"body":"Please change these lines in https://github.com/boxbilling/boxbilling/blob/4.14.5/src/bb-modules/Staff/Service.php\r\n\r\nLine https://github.com/boxbilling/boxbilling/blob/4.14.5/src/bb-modules/Staff/Service.php#L222 \r\n\r\n$ticketModel = $supportTicketService->getTicketById($params['id']);\r\n\r\nto\r\n\r\n$ticketModel = $supportTicketService->getPublicTicketById($params['id']);\r\n\r\nLine https://github.com/boxbilling/boxbilling/blob/4.14.5/src/bb-modules/Staff/Service.php#L223\r\n\r\n$ticket = $supportTicketService->toApiArray($ticketModel, true);\r\n\r\nto\r\n\r\n$ticket = $supportTicketService->publicToApiArray($ticketModel, true);\r\n\r\nthe same in the lines:\r\n\r\nhttps://github.com/boxbilling/boxbilling/blob/4.14.5/src/bb-modules/Staff/Service.php#L263\r\n\r\nand\r\n\r\nhttps://github.com/boxbilling/boxbilling/blob/4.14.5/src/bb-modules/Staff/Service.php#L264\r\n\r\n\r\nThis causes it to be created a public ticket send an incorrect subject to staff members, ie take the id from customer tickets table.\r\n\r\nThank you."}}