+if ($client_id) {
+ $client_ticket_select_query = "AND ticket_client_id = $client_id"; // Used when linking a ticket to the project
+} else {
+ $client_ticket_select_query = '';
+}
+
+$sql = mysqli_query($mysqli, "SELECT * FROM projects WHERE project_id = $project_id LIMIT 1");
+
+$row = mysqli_fetch_array($sql);
+$project_name = nullable_htmlentities($row['project_name']);
+
+ob_start();
+?>
+
+
+
Link closed ticket to project:
+
+
+
+
+
+
+
+
+
+ ";
+ } else {
+ echo "
$config_ticket_prefix
";
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
Link open ticket to project:
-
-
-
-
-
+
-
-
-
-
-
-
-
-
+if ($client_id) {
+ $client_ticket_select_query = "AND ticket_client_id = $client_id"; // Used when linking a ticket to the project
+} else {
+ $client_ticket_select_query = '';
+}
-
+$sql = mysqli_query($mysqli, "SELECT * FROM projects WHERE project_id = $project_id LIMIT 1");
-
-
-
-
+$row = mysqli_fetch_array($sql);
+$project_name = nullable_htmlentities($row['project_name']);
+
+// Generate the HTML form content using output buffering.
+ob_start();
+?>
+
+