Skip to content

Commit

Permalink
FIX: Task Contacts Table Not Showing Values in Board View Tooltip
Browse files Browse the repository at this point in the history
- this should fix the problem of adding/removing properties/sets which resulted in the property id not being in sync
  • Loading branch information
aljawaid committed Jul 2, 2023
1 parent 62aa02e commit dd9b793
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions Template/task/footer-tooltip.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,33 @@
<?php foreach ($contacts as $key => $value): ?>
<?php $values = $this->ContactsHelper->getContactByID($value['contacts_id']) ?>
<tr class="table-row">
<td class="contacts-table-value" title="<?= (empty($values[0])) ? "" : $values[0]['contact_item_value'] ?>">
<?= (empty($values[0])) ? "" : $values[0]['contact_item_value'] ?>
<td class="contacts-table-value" title="">
<?php foreach ($values as $array_key => $array_value): ?>
<?php if (current($values[$array_key]) && ($values[$array_key]['position'] == 1)): ?>
<?= $values[$array_key]['contact_item_value'] ?>
<?php endif ?>
<?php endforeach ?>
</td>
<td class="contacts-table-value" title="<?= (empty($values[1])) ? "" : $values[1]['contact_item_value'] ?>">
<?= (empty($values[1])) ? "" : $values[1]['contact_item_value'] ?>
<td class="contacts-table-value" title="">
<?php foreach ($values as $array_key => $array_value): ?>
<?php if (current($values[$array_key]) && ($values[$array_key]['position'] == 2)): ?>
<?= $values[$array_key]['contact_item_value'] ?>
<?php endif ?>
<?php endforeach ?>
</td>
<td class="contacts-table-value" title="<?= (empty($values[2])) ? "" : $values[2]['contact_item_value'] ?>">
<?= (empty($values[2])) ? "" : $values[2]['contact_item_value'] ?>
<td class="contacts-table-value" title="">
<?php foreach ($values as $array_key => $array_value): ?>
<?php if (current($values[$array_key]) && ($values[$array_key]['position'] == 3)): ?>
<?= $values[$array_key]['contact_item_value'] ?>
<?php endif ?>
<?php endforeach ?>
</td>
<td class="contacts-table-value" title="<?= (empty($values[3])) ? "" : $values[3]['contact_item_value'] ?>">
<?= (empty($values[3])) ? "" : $values[3]['contact_item_value'] ?>
<td class="contacts-table-value" title="">
<?php foreach ($values as $array_key => $array_value): ?>
<?php if (current($values[$array_key]) && ($values[$array_key]['position'] == 4)): ?>
<?= $values[$array_key]['contact_item_value'] ?>
<?php endif ?>
<?php endforeach ?>
</td>
</tr>
<?php endforeach ?>
Expand Down

0 comments on commit dd9b793

Please sign in to comment.