Skip to content

Commit

Permalink
fix(targetchange): bad url when delete an actor
Browse files Browse the repository at this point in the history
close #1607

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 14, 2020
1 parent 09e0d9f commit 62e0de1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,8 @@ public function post_addItem() {
protected static function getDeleteImage($id) {
global $CFG_GLPI;

$link = ' &nbsp;<a href="' . $CFG_GLPI['root_doc'] . '/plugins/formcreator/front/targetticket.form.php?delete_actor=' . $id . '">';
$formUrl = static::getFormURL();
$link = ' &nbsp;<a href="' . $formUrl . '?delete_actor=' . $id . '">';
$link .= '<img src="../../../pics/delete.png" alt="' . __('Delete') . '" title="' . __('Delete') . '" />';
$link .= '</a>';
return $link;
Expand Down

0 comments on commit 62e0de1

Please sign in to comment.