Only check for rich text if setting is enabled
This commit is contained in:
parent
75e332ea0c
commit
d922bb58d7
@ -1141,6 +1141,8 @@ function print_add_ticket()
|
||||
|
||||
<?php
|
||||
} // End ELSE submit_notice
|
||||
|
||||
if ($modsForHesk_settings['rich_text_for_tickets_for_customers']):
|
||||
?>
|
||||
<script>
|
||||
function validateRichText() {
|
||||
@ -1157,6 +1159,13 @@ function print_add_ticket()
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<?php else: ?>
|
||||
<script>
|
||||
function validateRichText() {
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Do not delete or modify the code below, it is used to detect simple SPAM bots -->
|
||||
<input type="hidden" name="hx" value="3"/><input type="hidden" name="hy" value=""/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user