Skip to content

Commit

Permalink
issue: Editor Spacing
Browse files Browse the repository at this point in the history
This addresses an issue where the `editor_spacing` was being applied to
emails and web created tickets. This updates the code to check for an Agent
or User session and if exists we will run `editor_spacing`; otherwise we
will not.
  • Loading branch information
JediKev committed Dec 7, 2020
1 parent 14045ee commit a6cbc5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/class.thread.php
Expand Up @@ -2866,7 +2866,13 @@ function ($m) use ($self) {
}

function getClean() {
return Format::sanitize(Format::editor_spacing(parent::getClean()));
global $thisclient, $thisstaff;

$clean = ($thisstaff || $thisclient)
? Format::editor_spacing(parent::getClean())
: parent::getClean();

return Format::sanitize($clean);
}

function getSearchable() {
Expand Down

0 comments on commit a6cbc5c

Please sign in to comment.