@@ -135,6 +135,7 @@ public function showForm($ID, $options = []) {
135135 $ this ->showDueDateSettings ($ form , $ rand );
136136 echo '</tr> ' ;
137137
138+ $ this ->showTypeSettings ($ rand );
138139 // -------------------------------------------------------------------------------------------
139140 // associated elements of the target
140141 // -------------------------------------------------------------------------------------------
@@ -648,6 +649,7 @@ public function save(PluginFormcreatorFormAnswer $formanswer) {
648649 $ data = $ this ->setTargetCategory ($ data , $ formanswer );
649650 $ data = $ this ->setTargetLocation ($ data , $ formanswer );
650651 $ data = $ this ->setTargetAssociatedItem ($ data , $ formanswer );
652+ $ data = $ this ->setTargetType ($ data , $ formanswer );
651653
652654 // There is always at least one requester
653655 $ data = $ this ->requesters + $ data ;
@@ -750,8 +752,19 @@ protected function setTargetLocation($data, $formanswer) {
750752 return $ data ;
751753 }
752754
755+ protected function showTypeSettings ($ rand ) {
756+ echo '<tr class="line0"> ' ;
757+ echo '<td width="15%"> ' . __ ('Type ' ) . '</td> ' ;
758+ echo '<td width="25%"> ' ;
759+ Ticket::dropdownType ('type ' , ['value ' => $ this ->fields ['type ' ], 'rand ' => $ rand ]);
760+ echo '</td> ' ;
761+ echo '<td></td> ' ;
762+ echo '<td></td> ' ;
763+ echo '</tr> ' ;
764+ }
765+
753766 protected function showAssociateSettings ($ rand ) {
754- global $ DB , $ CFG_GLPI ;
767+ global $ CFG_GLPI ;
755768
756769 echo '<tr class="line0"> ' ;
757770 echo '<td width="15%"> ' . __ ('Associated elements ' ) . '</td> ' ;
0 commit comments