Skip to content

Commit

Permalink
fix(targetticket,targetchange,targetproblem): use regular anchor to e…
Browse files Browse the repository at this point in the history
…dit a target
  • Loading branch information
btry committed Feb 18, 2022
1 parent 5bd752d commit d3fd221
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,10 @@ public function showTargets($ID, $options = []) {
$i++;
echo '<tr class="tab_bg_'.($i % 2).'">';
$targetItemUrl = $targetType::getFormURLWithID($targetId);
echo '<td onclick="document.location=\'' . $targetItemUrl . '\'" style="cursor: pointer">';
echo '<td><a href="' . $targetItemUrl . '">';

echo $target->fields['name'];
echo '</td>';

echo '<td align="center" width="32">';
echo '<i class="fas fa-edit" alt="*" title="'.__('Edit').'"
onclick="document.location=\'' . $targetItemUrl . '\'" align="absmiddle" style="cursor: pointer"></i> ';
echo '</td>';
echo '</a></td>';

echo '<td align="center" width="32">';
echo '<i class="far fa-trash-alt" alt="*" title="'.__('Delete', 'formcreator').'"
Expand Down

0 comments on commit d3fd221

Please sign in to comment.