3737 die ("Sorry. You can't access this file directly " );
3838}
3939
40- class PluginFormcreatorTargetChange extends PluginFormcreatorAbstractTarget
40+ class PluginFormcreatorTargetChange extends PluginFormcreatorAbstractItilTarget
4141{
4242 public static function getTypeName ($ nb = 1 ) {
4343 return _n ('Target change ' , 'Target changes ' , $ nb , 'formcreator ' );
@@ -560,11 +560,11 @@ public function prepareInputForUpdate($input) {
560560
561561 if (isset ($ input ['sla_rule ' ])) {
562562 switch ($ input ['sla_rule ' ]) {
563- case PluginFormcreatorAbstractTarget ::SLA_RULE_SPECIFIC :
563+ case self ::SLA_RULE_SPECIFIC :
564564 $ input ['sla_question_tto ' ] = $ input ['_sla_specific_tto ' ];
565565 $ input ['sla_question_ttr ' ] = $ input ['_sla_specific_ttr ' ];
566566 break ;
567- case PluginFormcreatorAbstractTarget ::SLA_RULE_FROM_ANWSER :
567+ case self ::SLA_RULE_FROM_ANWSER :
568568 $ input ['sla_question_tto ' ] = $ input ['_sla_questions_tto ' ];
569569 $ input ['sla_question_ttr ' ] = $ input ['_sla_questions_ttr ' ];
570570 break ;
@@ -573,11 +573,11 @@ public function prepareInputForUpdate($input) {
573573
574574 if (isset ($ input ['ola_rule ' ])) {
575575 switch ($ input ['ola_rule ' ]) {
576- case PluginFormcreatorAbstractTarget ::OLA_RULE_SPECIFIC :
576+ case self ::OLA_RULE_SPECIFIC :
577577 $ input ['ola_question_tto ' ] = $ input ['_ola_specific_tto ' ];
578578 $ input ['ola_question_ttr ' ] = $ input ['_ola_specific_ttr ' ];
579579 break ;
580- case PluginFormcreatorAbstractTarget ::OLA_RULE_FROM_ANWSER :
580+ case self ::OLA_RULE_FROM_ANWSER :
581581 $ input ['ola_question_tto ' ] = $ input ['_ola_questions_tto ' ];
582582 $ input ['ola_question_ttr ' ] = $ input ['_ola_questions_ttr ' ];
583583 break ;
@@ -659,7 +659,7 @@ public function getDefaultData(PluginFormcreatorFormAnswer $formanswer): array {
659659 *
660660 * @return Change|null generated change
661661 */
662- public function save (PluginFormcreatorFormAnswer $ formanswer ) {
662+ public function save (PluginFormcreatorFormAnswer $ formanswer ): ? CommonDBTM {
663663 $ data = [];
664664 $ change = new Change ();
665665 $ form = $ formanswer ->getForm ();
0 commit comments