diff --git a/admin/admin_submit_ticket.php b/admin/admin_submit_ticket.php index 4310f94d..8b229636 100644 --- a/admin/admin_submit_ticket.php +++ b/admin/admin_submit_ticket.php @@ -63,7 +63,7 @@ if ( empty($_POST) && ! empty($_SERVER['CONTENT_LENGTH']) ) $hesk_error_buffer = array(); $tmpvar['name'] = hesk_input( hesk_POST('name') ) or $hesk_error_buffer['name']=$hesklang['enter_your_name']; -$tmpvar['email'] = hesk_validateEmail( hesk_POST('email'), 'ERR', 0) or $hesk_error_buffer['email']=$hesklang['enter_valid_email']; +$tmpvar['email'] = hesk_POST('email'); $tmpvar['category'] = intval( hesk_POST('category') ) or $hesk_error_buffer['category']=$hesklang['sel_app_cat']; $tmpvar['priority'] = intval( hesk_POST('priority') ); @@ -178,7 +178,7 @@ elseif (hesk_checkPermission('can_assign_self',0) && hesk_okCategory($tmpvar['ca } // Notify customer of the ticket? -$notify = ! empty($_POST['notify']) ? 1 : 0; +$notify = (!empty($_POST['notify']) && !empty($tmpvar['email']) ) ? 1 : 0; // Show ticket after submission? $show = ! empty($_POST['show']) ? 1 : 0; diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index 622d7814..478709e3 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -1265,8 +1265,10 @@ function hesk_printReplyForm() {
()
-

- +

+ '; + } ?> diff --git a/admin/new_ticket.php b/admin/new_ticket.php index 8fdc44eb..0c140113 100644 --- a/admin/new_ticket.php +++ b/admin/new_ticket.php @@ -119,8 +119,8 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); - ';} elseif (in_array('email',$_SESSION['isnotice'])) {echo '
';} else {echo '
';} ?> - +
+
placeholder=""/>