From dedb41296f605ec5fa047ad7e20d3a7e4c878ced Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 4 Jun 2019 16:47:14 +0200 Subject: [PATCH] fix(targetchange,targetticket): PluginFormcreatorTarget itemtype removed no need to update such instance Signed-off-by: Thierry Bugier --- inc/targetbase.class.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/inc/targetbase.class.php b/inc/targetbase.class.php index 5ddbd7482..ed4f9a282 100644 --- a/inc/targetbase.class.php +++ b/inc/targetbase.class.php @@ -1743,20 +1743,6 @@ public function prepareInputForUpdate($input) { $this->skipCreateActors = true; } - if (isset($input['name'])) { - $target = new PluginFormcreatorTarget(); - $target->getFromDBByCrit([ - 'itemtype' => static ::class, - 'items_id' => $this->getID() - ]); - if (!$target->isNewItem()) { - $target->update([ - 'id' => $target->getID(), - 'name' => $input['name'], - ]); - } - } - // generate a uniq id if (!isset($input['uuid']) || empty($input['uuid'])) {