Skip to content
Snippets Groups Projects
Commit 63c21c69 authored by aydreeihn's avatar aydreeihn
Browse files

if long answer field is longer than 200, shorten display + edit button

parent 830ee556
No related branches found
No related tags found
No related merge requests found
......@@ -607,7 +607,14 @@ foreach (DynamicFormEntry::forTicket($ticket->getId()) as $form) {
<a class="ticket-action" id="inline-update" data-placement="bottom" data-toggle="tooltip" title="<?php echo __('Update'); ?>"
data-redirect="tickets.php?id=<?php echo $ticket->getId(); ?>"
href="#tickets/<?php echo $ticket->getId(); ?>/field/<?php echo $id; ?>/edit">
<?php echo $v; ?>
<?php
if (strlen($v) > 200) {
echo Format::truncate($v, 200);
echo "<br><i class=\"icon-edit\"></i>";
}
else
echo $v;
?>
</a>
<?php } else {
echo $v;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment