Skip to content

Commit

Permalink
Fix #128 : Fix ticket generation without validation
Browse files Browse the repository at this point in the history
  • Loading branch information
neeftarah committed Oct 27, 2015
1 parent 9816825 commit 8dba46a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions inc/formanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,8 @@ public function saveAnswers($datas)
$this->generateTarget();
break;
}
} else {
$this->generateTarget();
}

Session::addMessageAfterRedirect(__('The form have been successfully saved!', 'formcreator'), true, INFO);
Expand Down
2 changes: 1 addition & 1 deletion inc/targetticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function save(PluginFormcreatorFormanswer $formanswer)
$datas['_users_id_requester'] = $formanswer->fields['requester_id'];
$datas['_users_id_recipient'] = $formanswer->fields['requester_id'];
$datas['_users_id_lastupdater'] = Session::getLoginUserID();

// Create the target ticket
$ticketID = $ticket->add($datas);
$founded = $docItem->find('itemtype = "PluginFormcreatorFormanswer" AND items_id = ' . $formanswer->getID());
Expand Down

0 comments on commit 8dba46a

Please sign in to comment.