diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index d0e2eb6e..c250032c 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -630,13 +630,13 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
-
+

-
+

-
+
fetch_assoc(); $isTicketClosed = $isTicketClosedRow['IsClosed']; + echo '
'; if ($isTicketClosed == 0) // Ticket is still open { echo ''.$hesklang['close_action'].''; + class="btn btn-default btn-sm" href="change_status.php?track='.$trackingID.'&s='.$staffClosedOptionStatus['ID'].'&Refresh='.$random.'&token='.hesk_token_echo(0).'"> + '.$hesklang['close_action'].''; } else { echo ''.$hesklang['open_action'].''; + class="btn btn-default btn-sm" href="change_status.php?track='.$trackingID.'&s='.$staffReopenedStatus['ID'].'&Refresh='.$random.'&token='.hesk_token_echo(0).'"> + '.$hesklang['open_action'].''; } + + $linkText = 'new_ticket.php?name='.$ticket['name'].'&email='.$ticket['email'].'&catid='.$category['id'].'&priority='.$ticket['priority']; + foreach ($hesk_settings['custom_fields'] as $k=>$v) + { + if ($v['use'] == 1) + { + + if ($v['type'] == 'checkbox') + { + $value = str_replace('
', '-CHECKBOX-', $ticket[$k]); + } else { + $value = $ticket[$k]; + } + $linkText .= '&c_'.$k.'='.$value; + } + } + + echo ' + '.$hesklang['create_based_on_contact'].' + '; + echo '
'; ?>
diff --git a/admin/new_ticket.php b/admin/new_ticket.php index e6ff91ae..84a0a323 100644 --- a/admin/new_ticket.php +++ b/admin/new_ticket.php @@ -116,13 +116,19 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ';} else {echo '
';} ?>
- +
- placeholder=""/> + + placeholder="">
@@ -154,10 +160,18 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
@@ -174,7 +188,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); // Staff doesn't need to fill in required custom fields $v['req'] = ''; - if ($v['type'] == 'checkbox') + if ($v['type'] == 'checkbox' && !isset($_GET["c_$k"])) { $k_value = array(); if (isset($_SESSION["c_$k"]) && is_array($_SESSION["c_$k"])) @@ -189,6 +203,16 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); { $k_value = stripslashes(hesk_input($_SESSION["c_$k"])); } + elseif (isset($_GET["c_$k"])) + { + if ($v['type'] == 'checkbox') + { + $k_value = explode('-CHECKBOX-', $_GET["c_$k"]); + } else + { + $k_value = stripslashes(hesk_GET("c_$k")); + } + } else { $k_value = ''; @@ -254,8 +278,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); /* Checkbox */ case 'checkbox': echo '
'; - - $options = explode('#HESK#',$v['value']); + $options = explode('#HESK#',$v['value']); $cls = in_array($k,$_SESSION['iserror']) ? ' class="isError" ' : ''; foreach ($options as $option) @@ -311,7 +334,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ';} else {echo '
';} ?>
- +
';} else {echo '
';} ?> diff --git a/css/hesk_newStyle.php b/css/hesk_newStyle.php index 32ef5dd1..6f357be1 100644 --- a/css/hesk_newStyle.php +++ b/css/hesk_newStyle.php @@ -39,6 +39,7 @@ @media (min-width:992px) { .close-ticket { text-align: right; + padding-bottom: 5px; } } diff --git a/css/hesk_newStyleRTL.php b/css/hesk_newStyleRTL.php index 0abbd51d..371395d7 100644 --- a/css/hesk_newStyleRTL.php +++ b/css/hesk_newStyleRTL.php @@ -39,6 +39,7 @@ @media (min-width:992px) { .close-ticket { text-align: left; + padding-bottom: 5px; } } diff --git a/language/en/text.php b/language/en/text.php index 14e9c087..2694b45c 100644 --- a/language/en/text.php +++ b/language/en/text.php @@ -25,6 +25,7 @@ $hesklang['EMAIL_HR']='------ Reply above this line ------'; $hesklang['ticket_closed'] = '[#%%TRACK_ID%%] Ticket closed/resolved'; $hesklang['ticket_reopen'] = '[#%%TRACK_ID%%] Ticket reopened'; $hesklang['ticket_reopen_assigned'] = '[#%%TRACK_ID%%] Assigned ticket reopened'; +$hesklang['create_based_on_contact'] = 'Create Ticket For Same Contact'; // ADDED OR MODIFIED IN NuMods 1.5.0 $hesklang['ticket_auto_refresh'] = 'Ticket Table Auto-Refresh:';