#451 Use correct ticket editor when editing ticket/reply
This commit is contained in:
parent
98f2bf0531
commit
d70e9fc350
@ -81,6 +81,7 @@ if (hesk_isREQUEST('reply')) {
|
|||||||
}
|
}
|
||||||
$reply = hesk_dbFetchAssoc($result);
|
$reply = hesk_dbFetchAssoc($result);
|
||||||
$ticket['message'] = $reply['message'];
|
$ticket['message'] = $reply['message'];
|
||||||
|
$ticket['html'] = $reply['html'];
|
||||||
$is_reply = 1;
|
$is_reply = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -451,15 +452,13 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
} ?>
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="message" class="col-sm-3 control-label"><?php echo $hesklang['message']; ?>:</label>
|
<label for="message" class="col-sm-3 control-label"><?php echo $hesklang['message']; ?>:</label>
|
||||||
|
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<?php
|
<?php
|
||||||
$message = $modsForHesk_settings['rich_text_for_tickets'] ? hesk_html_entity_decode($ticket['message']) : $ticket['message'];
|
$message = $ticket['html'] ? hesk_html_entity_decode($ticket['message']) : $ticket['message'];
|
||||||
?>
|
?>
|
||||||
<textarea class="form-control htmlEditor" name="message" rows="12"
|
<textarea class="form-control htmlEditor" name="message" rows="12"
|
||||||
placeholder="<?php echo htmlspecialchars($hesklang['message']); ?>"
|
placeholder="<?php echo htmlspecialchars($hesklang['message']); ?>"
|
||||||
@ -480,7 +479,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group" style="text-align: center">
|
<div class="form-group" style="text-align: center">
|
||||||
<?php
|
<?php
|
||||||
$html = $modsForHesk_settings['rich_text_for_tickets'] ? 1 : 0;
|
$html = $ticket['html'] ? 1 : 0;
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="html" value="<?php echo $html; ?>">
|
<input type="hidden" name="html" value="<?php echo $html; ?>">
|
||||||
<input type="submit" value="<?php echo $hesklang['save_changes']; ?>" class="btn btn-default"/>
|
<input type="submit" value="<?php echo $hesklang['save_changes']; ?>" class="btn btn-default"/>
|
||||||
@ -492,7 +491,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($modsForHesk_settings['rich_text_for_tickets']): ?>
|
<?php if ($ticket['html']): ?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user