Fixes #509 Allow customers to respond using rich text
This commit is contained in:
parent
ba0a035d88
commit
cecd302957
@ -62,12 +62,14 @@ $message = hesk_input(hesk_POST('message'));
|
||||
|
||||
// If the message was entered, further parse it
|
||||
$modsForHesk_settings = mfh_getSettings();
|
||||
if (strlen($message) && !$modsForHesk_settings['rich_text_for_tickets_for_customers']) {
|
||||
// Make links clickable
|
||||
$message = hesk_makeURL($message);
|
||||
if (strlen($message)) {
|
||||
if (!$modsForHesk_settings['rich_text_for_tickets_for_customers']) {
|
||||
// Make links clickable
|
||||
$message = hesk_makeURL($message);
|
||||
|
||||
// Turn newlines into <br />
|
||||
$message = nl2br($message);
|
||||
// Turn newlines into <br />
|
||||
$message = nl2br($message);
|
||||
}
|
||||
} else {
|
||||
$hesk_error_buffer[] = $hesklang['enter_message'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user