bug fixes + file links in various modules

This commit is contained in:
Dennis Eichhorn 2021-07-19 21:34:06 +02:00
parent fbc9de3d52
commit 4f2571f1a0
3 changed files with 7 additions and 7 deletions

View File

@ -53,8 +53,8 @@ final class KanbanCardCommentMapper extends DataMapperAbstract
'media' => [ 'media' => [
'mapper' => MediaMapper::class, 'mapper' => MediaMapper::class,
'table' => 'kanban_card_comment_media', 'table' => 'kanban_card_comment_media',
'external' => 'kanban_card_comment_media_src', 'external' => 'kanban_card_comment_media_dst',
'self' => 'kanban_card_comment_media_dst', 'self' => 'kanban_card_comment_media_src',
], ],
]; ];

View File

@ -73,8 +73,8 @@ final class KanbanCardMapper extends DataMapperAbstract
'media' => [ 'media' => [
'mapper' => MediaMapper::class, 'mapper' => MediaMapper::class,
'table' => 'kanban_card_media', 'table' => 'kanban_card_media',
'external' => 'kanban_card_media_src', 'external' => 'kanban_card_media_dst',
'self' => 'kanban_card_media_dst', 'self' => 'kanban_card_media_src',
], ],
'comments' => [ 'comments' => [
'mapper' => KanbanCardCommentMapper::class, 'mapper' => KanbanCardCommentMapper::class,

View File

@ -35,7 +35,7 @@ $comments = $card->getComments();
</div> </div>
<div class="portlet-foot"> <div class="portlet-foot">
<?php $files = $card->getMedia(); foreach ($files as $file) : ?> <?php $files = $card->getMedia(); foreach ($files as $file) : ?>
<span class="file"><?= $this->printHtml($file->name); ?></span> <span><a class="content" href="<?= UriFactory::build('{/prefix}media/single?id=' . $file->getId());?>"><?= $file->name; ?></a></span>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
</section> </section>
@ -51,7 +51,7 @@ $comments = $card->getComments();
</div> </div>
<div class="portlet-foot"> <div class="portlet-foot">
<?php $files = $comment->getMedia(); foreach ($files as $file) : ?> <?php $files = $comment->getMedia(); foreach ($files as $file) : ?>
<span class="file"><?= $this->printHtml($file->name); ?></span> <span><a class="content" href="<?= UriFactory::build('{/prefix}media/single?id=' . $file->getId());?>"><?= $file->name; ?></a></span>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
</section> </section>