diff --git a/inc/targetchange.class.php b/inc/targetchange.class.php index a0bd224ea..03082259b 100644 --- a/inc/targetchange.class.php +++ b/inc/targetchange.class.php @@ -175,7 +175,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con } // Escape text fields - foreach (['target_name'] as $key) { + foreach (['name'] as $key) { $input[$key] = $DB->escape($input[$key]); } diff --git a/inc/targetticket.class.php b/inc/targetticket.class.php index 435b9d686..253e6a98a 100644 --- a/inc/targetticket.class.php +++ b/inc/targetticket.class.php @@ -1053,7 +1053,7 @@ public static function import(PluginFormcreatorLinker $linker, $input = [], $con } // Escape text fields - foreach (['target_name'] as $key) { + foreach (['name'] as $key) { $input[$key] = $DB->escape($input[$key]); }