Skip to content

Commit

Permalink
fix(targetticket): set request source if no rule specified
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Oct 24, 2022
1 parent 0f5542b commit 2e04680
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/targetticket.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,10 @@ protected function setTargetLocation($data, $formanswer) {

protected function setTargetSource(array $data, PluginFormcreatorFormAnswer $formanswer): array {
switch ($this->fields['source_rule']) {
case self::REQUESTSOURCE_NONE:
$data['requesttypes_id'] = PluginFormcreatorCommon::getFormcreatorRequestTypeId();
break;

case self::REQUESTSOURCE_FORMCREATOR:
$data['requesttypes_id'] = $this->fields['source_question'];
break;
Expand Down

0 comments on commit 2e04680

Please sign in to comment.