Skip to content

Commit

Permalink
fix(targetchange,targetticket): PluginFormcreatorTarget itemtype removed
Browse files Browse the repository at this point in the history
no need to update such instance

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Aug 22, 2019
1 parent 22fd91a commit dedb412
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit dedb412

Please sign in to comment.