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