You can simply add something like this to the top of the function to disable all emails:
Code: Select all
function hesk_mail($to,$subject,$message) {
return false;
/* the rest of the code may be left intact... */
Moderator: mkoch227
Code: Select all
function hesk_mail($to,$subject,$message) {
return false;
/* the rest of the code may be left intact... */
Code: Select all
$hesklang['abbr']['year']
Code: Select all
$hesklang['abbr']['year']='y ';
but if I try to disable that to 0, it saves it successfully but it goes back to 7 days right after thatAutoclose tickets: [?] [7] days after last staff reply
Klemen wrote:Indeed a bug. Good catch, thanks for reporting it
Code: Select all
$set['autoclose'] = ! isset($_POST['s_autoclose']) ? 7 : intval($_POST['s_autoclose']);
$set['autoclose'] = hesk_checkMinMax($set['autoclose'],0,999,7);
Are you sure it's that file name/line?Klemen wrote:You should feel important, every even smallest bug report is very important![]()
You can modify file admin/admin_settings_save.php lines 100 and 101 to sayCode: Select all
$set['autoclose'] = ! isset($_POST['s_autoclose']) ? 7 : intval($_POST['s_autoclose']); $set['autoclose'] = hesk_checkMinMax($set['autoclose'],0,999,7);
Code: Select all
if (d.s_site_title.value=='') {alert('<?php echo addslashes($hesklang['err_sname']); ?>'); return false;}
if (d.s_site_url.value=='') {alert('<?php echo addslashes($hesklang['err_surl']); ?>'); return false;}
Klemen wrote:One possible reason that comes to mind is your DB structure is not 100% compatible with 2.3. Check structure of table "hesk_tickets" and see if "trackid" is varchar(10) or varchar(13)? Should be varchar(13), if it's not the ticket ID is getting truncated when it enteres the DB.
In this case, you would have a ticket with trackind ID "5YE-LNJ-6R" ("NX" missing) in the database instead of a ticket with the correct ID "5YE-LNJ-6RNX".
Yes the ticket gets entered into the database, it just does not show it through the webpage after you have submitted ticket and instead gives the error (which is the screenshot I uploaded)Klemen wrote:This happens when you click "+ New ticket" link or when you enter info and submit the form?
Do you get the same error if you Unselect "Show the ticket after submission"?
Does the ticket get entered in the database?
Are you sure the database structure is from 2.3 and not from 2.2?
Double-check that admin_ticket.php and other files are the ones from version 2.3 and not 2.2.
I swear you went back and added the _save.php part!Klemen wrote:@SS113: you should edit file "admin_settings_save.php", not "admin_settings.php"![]()