Skip to content

Commit 2e04680

Browse files
committed
fix(targetticket): set request source if no rule specified
1 parent 0f5542b commit 2e04680

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inc/targetticket.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,10 @@ protected function setTargetLocation($data, $formanswer) {
10331033

10341034
protected function setTargetSource(array $data, PluginFormcreatorFormAnswer $formanswer): array {
10351035
switch ($this->fields['source_rule']) {
1036+
case self::REQUESTSOURCE_NONE:
1037+
$data['requesttypes_id'] = PluginFormcreatorCommon::getFormcreatorRequestTypeId();
1038+
break;
1039+
10361040
case self::REQUESTSOURCE_FORMCREATOR:
10371041
$data['requesttypes_id'] = $this->fields['source_question'];
10381042
break;

0 commit comments

Comments
 (0)