Skip to content

Commit

Permalink
feat(formanswer): restore toasts when craeting targets
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Oct 4, 2022
1 parent 297fb27 commit f43df3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,11 @@ public function generateTarget(): bool {
$generatedTargets->buildCompositeRelations();

Session::addMessageAfterRedirect(__('The form has been successfully saved!', 'formcreator'), true, INFO);

foreach($this->targetList as $target) {
Session::addMessageAfterRedirect(sprintf(__('Item sucessfully added: %s (%s: %s)', 'formcreator'), $target->getName(), $target->getTypeName(1), $target->getID()), false, INFO);
}

unset($CFG_GLPI['plugin_formcreator_disable_hook_create_ticket']);
return $success;
}
Expand Down

0 comments on commit f43df3e

Please sign in to comment.