Skip to content

Commit

Permalink
markdown for textarea #54
Browse files Browse the repository at this point in the history
  • Loading branch information
creecros committed Oct 19, 2020
1 parent e179386 commit 231b7b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Template/task/metatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ class="metadata-table table-striped table-scrolling"
<i class="fa fa-arrows-alt draggable-row-handle ui-sortable-handle" title="Change metadata position"></i>&nbsp;
<?php endif ?>
<strong><?= $custom_field['human_name'] ?></strong></td>
<?php if ($custom_field['data_type'] == 'textarea'): ?>
<td><?= $this->text->markdown($this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '')) ?></td>
<?php else: ?>
<td><?= $this->task->taskMetadataModel->get($task['id'], $custom_field['human_name'], '') ?></td>
<?php endif ?>
</tr>
<?php endif ?>
<?php endforeach ?>
Expand Down

0 comments on commit 231b7b6

Please sign in to comment.