2.3 MOD: Add New Category Name to Category Moved Email

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

2.3 MOD: Add New Category Name to Category Moved Email

Post by Lisaweb »

This has been posted in the past but it was buried in an older topic. Here are the updated instructions to make it work in 2.3....

In admin\move_category.php file, just above this text

Code: Select all

/*** Need to notify any staff? ***/
paste

Code: Select all

$qry = "SELECT `name` FROM `".$hesk_settings['db_pfix']."categories` WHERE `id`='".$category."'";
$myres = hesk_dbQuery($qry);
$mytmp = hesk_dbFetchAssoc($myres);
$catname = $mytmp['name'];
Then under:

Code: Select all

$msg = hesk_getEmailMessage('category_moved',$ticket,1);  
paste this code:

Code: Select all

$msg=str_replace('%%NEWCAT%%',$catname,$msg);
Then add this line to language\en\emails\category_moved.txt:

Code: Select all

New Category:  	%%NEWCAT%%
- Lisa
Post Reply