Skip to content

Commit

Permalink
fix(targetticket,targetchange): set name of target
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Aug 22, 2019
1 parent e0846ad commit 7b90ef4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1714,6 +1714,8 @@ public function prepareInputForAdd($input) {
return false;
}

$input['name'] = $input['target_name'];

// Set default content
if (!isset($input['content']) || isset($input['content']) && empty($input['content'])) {
$input['content'] = '##FULLFORM##';
Expand Down

0 comments on commit 7b90ef4

Please sign in to comment.