It prints with notes hidden from the client.

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
kos6rkn1
Posts: 3
Joined: Sun Jan 14, 2024 9:19 pm

It prints with notes hidden from the client.

Post by kos6rkn1 »

Version of script: 3.4.3

The client has the option to print notes that should be invisible to them. How can this be fixed?
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Re: It prints with notes hidden from the client.

Post by cwyenberg »

This prints all custom fields as well, whether public or staff-only. If this is not a simple edit I will need to remove the print button and the customer can simply use the browser page print function.
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Re: It prints with notes hidden from the client.

Post by cwyenberg »

Commenting out the following line in print.php seems to do the trick:

Code: Select all

$options .= '<a class="btn btn-default" href="print.php?track=' . $trackingID . $hesk_settings['e_query'] . '" title="' . $hesklang['printer_friendly'] . '"><span class="fa fa-print"></span> ' . $hesklang['btn_print'] .
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Re: It prints with notes hidden from the client.

Post by Klemen »

Notes are not printed on the customer side.

You probably see them because you are logged into the admin panel when testing/printing from the customer side.

If you open the help desk in a private/incognito browser window (or on another computer) you should be able to confirm that notes are not printed for customers.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Post Reply