diff --git a/functions.php b/functions.php index c6fa2d29..4d1b8c44 100644 --- a/functions.php +++ b/functions.php @@ -1082,8 +1082,6 @@ function createiCalStr($datetime, $title, $description, $location) // Todo: add organizer details // $event->addNode(new ZCiCalDataNode("ORGANIZER;CN=Organizer Name:MAILTO:organizer@example.com")); - // Export the iCal object to a string - $ics_feed = $cal_event->export(); - - return $ics_feed; + // Return the iCal string + return $cal_event->export(); } diff --git a/post/ticket.php b/post/ticket.php index 59b3903b..af0ceab6 100644 --- a/post/ticket.php +++ b/post/ticket.php @@ -751,7 +751,7 @@ if (isset($_POST['bulk_ticket_reply'])) { // Get Contact Details $sql = mysqli_query( $mysqli, - "SELECT contact_name, contact_email, ticket_created_by, ticket_assigned_to + "SELECT contact_name, contact_email, ticket_created_by, ticket_assigned_to FROM tickets LEFT JOIN contacts ON ticket_contact_id = contact_id WHERE ticket_id = $ticket_id" @@ -1186,7 +1186,7 @@ if (isset($_POST['add_invoice_from_ticket'])) { $sql = mysqli_query( $mysqli, - "SELECT * FROM tickets + "SELECT * FROM tickets LEFT JOIN clients ON ticket_client_id = client_id LEFT JOIN contacts ON ticket_contact_id = contact_id LEFT JOIN assets ON ticket_asset_id = asset_id diff --git a/ticket_edit_schedule_modal.php b/ticket_edit_schedule_modal.php index 50e63263..caa02ca0 100644 --- a/ticket_edit_schedule_modal.php +++ b/ticket_edit_schedule_modal.php @@ -40,4 +40,4 @@ - \ No newline at end of file +