Skip to content

Commit 265c8ba

Browse files
committed
fix(targetchange): bad url when delete an actor
close #1607 Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent 3668fb6 commit 265c8ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inc/targetbase.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,8 @@ public function post_addItem() {
17151715
protected static function getDeleteImage($id) {
17161716
global $CFG_GLPI;
17171717

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

0 commit comments

Comments
 (0)