mirror of
https://github.com/itflow-org/itflow
synced 2026-03-18 03:34:50 +00:00
When Adding a Ticket Template to a Project Template use the Template name and not the subject also optimized Query
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<option value="">- Select a Ticket Template -</option>
|
<option value="">- Select a Ticket Template -</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$sql_ticket_templates_select = mysqli_query($mysqli, "SELECT * FROM ticket_templates
|
$sql_ticket_templates_select = mysqli_query($mysqli, "SELECT ticket_template_id, ticket_template_name FROM ticket_templates
|
||||||
WHERE ticket_template_id NOT IN (
|
WHERE ticket_template_id NOT IN (
|
||||||
SELECT ticket_template_id FROM project_template_ticket_templates
|
SELECT ticket_template_id FROM project_template_ticket_templates
|
||||||
WHERE project_template_id = $project_template_id
|
WHERE project_template_id = $project_template_id
|
||||||
@@ -31,9 +31,9 @@
|
|||||||
);
|
);
|
||||||
while ($row = mysqli_fetch_array($sql_ticket_templates_select)) {
|
while ($row = mysqli_fetch_array($sql_ticket_templates_select)) {
|
||||||
$ticket_template_id_select = intval($row['ticket_template_id']);
|
$ticket_template_id_select = intval($row['ticket_template_id']);
|
||||||
$ticket_template_subject_select = nullable_htmlentities($row['ticket_template_subject']);
|
$ticket_template_name_select = nullable_htmlentities($row['ticket_template_name']);
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $ticket_template_id_select; ?>"><?php echo $ticket_template_subject_select; ?></option>
|
<option value="<?php echo $ticket_template_id_select; ?>"><?php echo $ticket_template_name_select; ?></option>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user