File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -700,7 +700,6 @@ protected function getTargetTemplate(array $data): int {
700
700
701
701
public function getDefaultData (PluginFormcreatorFormAnswer $ formanswer ): array {
702
702
$ data = parent ::getDefaultData ($ formanswer );
703
- $ data ['requesttypes_id ' ] = PluginFormcreatorCommon::getFormcreatorRequestTypeId ();
704
703
705
704
return $ data ;
706
705
}
@@ -716,6 +715,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer) {
716
715
$ ticket = new Ticket ();
717
716
$ form = $ formanswer ->getForm ();
718
717
$ data = $ this ->getDefaultData ($ formanswer );
718
+ $ data ['requesttypes_id ' ] = $ data ['requesttypes_id ' ] ?? PluginFormcreatorCommon::getFormcreatorRequestTypeId ();
719
719
720
720
// Parse data
721
721
// TODO: generate instances of all answers of the form and use them for the fullform computation
You can’t perform that action at this time.
0 commit comments