Script URL:
Version of script: 2.2
Hosting company: (internal server - URL not that important then?)
URL of phpinfo.php: (wwwroot\hesk\extra)
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
"change move category mail admins"
Write your message below:
admin = admin
user_A = cat_A
user_B = cat_B
user_C = all_cat (no admin, but all rights except 'manage...', = the teamleader)
when i assign a non-default category (lets say cat_A) upon the creation of a new ticket, the user assigned to this category (user_A) gets an email, as do the admin and -in my config- user_C.
however, if i log in with user_C and change the category of the ticket, i can see that the category is changed in the ticket overview,
BUT only my admin gets the move-category notification email.
i tried copying the code for sending an email at ticket creation (since this works) from file submit_ticket.php (lines 315-321) to move_category.php (lines 98-104) (= the "Not admin, is he allowed this category? */ section) but to no avail.
- i restarted my apache/mysql server after the edit
- all users have all notification settings checked
- if i use the admin account to change the category no mails are received whatsoever.
any clues on this one?
regards,
Steven.
changin/moving category - mailing goes wrong
Moderator: mkoch227
-
- Posts: 9
- Joined: Mon Jul 05, 2010 2:10 pm
If user_C moves a ticket to cat_A both the admin and user_A should receive e-mail notification (provided both have "A new ticket is submitted with owner: Unassigned" checked in the profile).
User_C doesn't receive it in any case as he is the one moving the ticket and doesn't have to be notified.
Try this for debugging try this: open "admin/move_category.php" in Notepad and just ABOVE add
Login as user_C and move a ticket from cat_A to cat_B
Exactly what does the page that display say?
User_C doesn't receive it in any case as he is the one moving the ticket and doesn't have to be notified.
Try this for debugging try this: open "admin/move_category.php" in Notepad and just ABOVE
Code: Select all
if (count($admins)>0)
Code: Select all
print_r($admins);
exit();
Exactly what does the page that display say?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 9
- Joined: Mon Jul 05, 2010 2:10 pm
nothing really happens actually?
i just get the same ticket-page with on top " Success: This ticket has been moved to the new category "
no extra page/section is displayed with the "print_r($admins);" info...
code looks like this:
print_r($admins);
exit();
if (count($admins)>0)
edited - saved - restarted apache - logged out user_C - reloaded my tabs in firefox - same in IE...
i just get the same ticket-page with on top " Success: This ticket has been moved to the new category "
no extra page/section is displayed with the "print_r($admins);" info...
code looks like this:
print_r($admins);
exit();
if (count($admins)>0)
edited - saved - restarted apache - logged out user_C - reloaded my tabs in firefox - same in IE...
Emmm, there's no way script would continue after exit(); - have you double-checked this? Did you make sure you uploaded the modified file to the server?
Apache doesn't have to be restarted after this, but try clearing temporary internet files and close all browser windows before testing again.
Apache doesn't have to be restarted after this, but try clearing temporary internet files and close all browser windows before testing again.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 9
- Joined: Mon Jul 05, 2010 2:10 pm
(sorry, been working on a different project the past week)
i double checked the code, restarted apache, restart the server (w2k8) apache is running on, tried it in firefox & IE on both the server and my laptop, but the script doesn't exit or display the admin count code...
i use easyphp pack which is installed on my C drive (as i read something about installing under program files makes some sort of shadow copy elsewhere)
any clues?
S.
i double checked the code, restarted apache, restart the server (w2k8) apache is running on, tried it in firefox & IE on both the server and my laptop, but the script doesn't exit or display the admin count code...
i use easyphp pack which is installed on my C drive (as i read something about installing under program files makes some sort of shadow copy elsewhere)
any clues?
S.