mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-10 03:48:40 +00:00
fix forward bug
This commit is contained in:
parent
ad9c107212
commit
c9a9d47949
|
|
@ -187,13 +187,15 @@ echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$tos = $element->getTo();
|
$tos = $element->getTo();
|
||||||
if ($c > 1 && \count($tos) > 0) : ?>
|
if (\count($tos) > 1
|
||||||
|
|| $tos[0]->getRelation()->getId() !== $task->getCreatedBy()->getId()
|
||||||
|
) : ?>
|
||||||
<section class="box wf-100">
|
<section class="box wf-100">
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
<?= $this->getHtml('ForwardedTo') ?>
|
<?= $this->getHtml('ForwardedTo') ?>
|
||||||
<?php foreach ($tos as $to) : ?>
|
<?php foreach ($tos as $to) : ?>
|
||||||
<?php if ($to instanceof AccountRelation) : ?>
|
<?php if ($to instanceof AccountRelation) : ?>
|
||||||
<?= $this->printHtml($to->getRelation()->getName1()); ?>
|
<a href="<?= phpOMS\Uri\UriFactory::build('{/prefix}profile/single?{?}&id=' . $to->getRelation()->getId()) ?>"><?= $this->printHtml($to->getRelation()->getName1()); ?></a>
|
||||||
<?php elseif ($to instanceof GroupRelation) : ?>
|
<?php elseif ($to instanceof GroupRelation) : ?>
|
||||||
<?= $this->printHtml($to->getRelation()->getName()); ?>
|
<?= $this->printHtml($to->getRelation()->getName()); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user