Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
hot fix to bug by Document:type
Browse files Browse the repository at this point in the history
  • Loading branch information
githubjeka committed Nov 10, 2017
1 parent 745e36f commit 572b16a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"workflow",
"documents"
],
"version": "0.1.1dev",
"version": "0.1.1",
"humhub": {
"minVersion": "1.2.3"
},
Expand Down
10 changes: 1 addition & 9 deletions widgets/views/wallEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,7 @@
<?= Yii::$app->formatter->asDate($document->created_at, 'long') ?>
</small>
</i>
<?php if ($document->type) : ?>
<span class="label label-default">
<?= Html::encode(
(isset(Document::types()[$document->type])) ?
Document::types()[$document->type]
: $document->type
) ?>
</span>
<?php endif ?>
<?= \tracker\widgets\DocumentTypeLabel::widget(['type'=>$document->typeModel]) ?>
<?php if ($document->to && $document->from) : ?>
<span class="label label-default">
<?= Yii::t('TrackerIssuesModule.views', 'from') ?>
Expand Down

0 comments on commit 572b16a

Please sign in to comment.