Fixes #433 fix undefined 'as_message'

merge-requests/23/head
Mike Koch 8 years ago
parent eeaf56d3b7
commit 5706563879

@ -1160,10 +1160,11 @@ if ($modsForHesk_settings['request_location']) {
// Set the message in the actual text box if rich text is enabled
if ($modsForHesk_settings['rich_text_for_tickets']) {
$message = hesk_SESSION('as_message', '');
echo "
<script>
tinymce.get('message').setContent('');
tinymce.get('message').execCommand('mceInsertRawHTML', false, '".$_SESSION['as_message']."');
tinymce.get('message').execCommand('mceInsertRawHTML', false, '".$message."');
</script>
";
}

Loading…
Cancel
Save