File tree Expand file tree Collapse file tree 2 files changed +7
-22
lines changed Expand file tree Collapse file tree 2 files changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,6 @@ public static function setNotification($enable) {
7373 $ CFG_GLPI ['use_notifications ' ] = $ enable ? '1 ' : '0 ' ;
7474 }
7575
76- public static function getGlpiVersion () {
77- return defined ('GLPI_PREVER ' )
78- ? GLPI_PREVER
79- : GLPI_VERSION ;
80- }
81-
8276 /**
8377 * Get Link Name
8478 *
Original file line number Diff line number Diff line change @@ -745,22 +745,13 @@ public function save(PluginFormcreatorFormAnswer $formanswer) {
745745 'content ' => $ message ,
746746 '_do_not_compute_takeintoaccount ' => true
747747 ];
748- if (class_exists (ITILFollowup::class)) {
749- // GLPI 9.4+
750- $ followUpInput += [
751- 'items_id ' => $ ticketID ,
752- 'itemtype ' => Ticket::class,
753- ];
754- $ ticketFollowup = new ITILFollowup ();
755- $ ticketFollowup ->add ($ followUpInput );
756- } else {
757- // GLPI < 9.4
758- $ followUpInput += [
759- 'tickets_id ' => $ ticketID ,
760- ];
761- $ ticketFollowup = new TicketFollowup ();
762- $ ticketFollowup ->add ($ followUpInput );
763- }
748+ // GLPI 9.4+
749+ $ followUpInput += [
750+ 'items_id ' => $ ticketID ,
751+ 'itemtype ' => Ticket::class,
752+ ];
753+ $ ticketFollowup = new ITILFollowup ();
754+ $ ticketFollowup ->add ($ followUpInput );
764755
765756 // Restore mail notification setting
766757 PluginFormcreatorCommon::setNotification ($ use_mailing );
You can’t perform that action at this time.
0 commit comments