We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d3871 commit b3cc8d2Copy full SHA for b3cc8d2
inc/formanswer.class.php
@@ -940,12 +940,16 @@ public function prepareInputForUpdate($input) {
940
* @return boolean true if pre_delete actions succeeded, false if not
941
*/
942
public function pre_deleteItem() {
943
+ global $CFG_GLPI;
944
+
945
$issue = new PluginFormcreatorIssue();
946
$issue->deleteByCriteria([
947
'items_id' => $this->getID(),
948
'itemtype' => self::getType(),
949
]);
950
951
+ $CFG_GLPI['keep_tickets_on_delete'] = '1';
952
953
return true;
954
}
955
0 commit comments