Skip to content

Commit d3fd221

Browse files
committed
fix(targetticket,targetchange,targetproblem): use regular anchor to edit a target
1 parent 5bd752d commit d3fd221

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

inc/form.class.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,10 @@ public function showTargets($ID, $options = []) {
470470
$i++;
471471
echo '<tr class="tab_bg_'.($i % 2).'">';
472472
$targetItemUrl = $targetType::getFormURLWithID($targetId);
473-
echo '<td onclick="document.location=\'' . $targetItemUrl . '\'" style="cursor: pointer">';
473+
echo '<td><a href="' . $targetItemUrl . '">';
474474

475475
echo $target->fields['name'];
476-
echo '</td>';
477-
478-
echo '<td align="center" width="32">';
479-
echo '<i class="fas fa-edit" alt="*" title="'.__('Edit').'"
480-
onclick="document.location=\'' . $targetItemUrl . '\'" align="absmiddle" style="cursor: pointer"></i> ';
481-
echo '</td>';
476+
echo '</a></td>';
482477

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

0 commit comments

Comments
 (0)