File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -404,20 +404,19 @@ public static function getAnswer($question, $value = 0)
404404 public static function preUpdateSatisfaction (TicketSatisfaction $ ticketSatisfaction )
405405 {
406406
407+
407408 $ surveyanswer = new self ();
408409 $ dbu = new DbUtils ();
409410 if ($ surveyanswer ->getFromDBByCrit (["ticketsatisfactions_id " => $ ticketSatisfaction ->getField ('id ' )])) {
410411 $ input = ['id ' => $ surveyanswer ->getID (),
411- 'answer ' => addslashes ($ dbu ->exportArrayToDB ($ ticketSatisfaction ->input ['answer ' ]))];
412-
412+ 'answer ' => $ dbu ->exportArrayToDB ($ ticketSatisfaction ->input ['answer ' ])];
413413 $ surveyanswer ->update ($ input );
414414 } else {
415415 if (isset ($ ticketSatisfaction ->input ['plugin_satisfaction_surveys_id ' ])) {
416416 $ input = ['plugin_satisfaction_surveys_id ' => $ ticketSatisfaction ->input [
417417 'plugin_satisfaction_surveys_id ' ],
418418 'ticketsatisfactions_id ' => $ ticketSatisfaction ->getField ('id ' ),
419- 'answer ' => addslashes (
420- $ dbu ->exportArrayToDB ($ ticketSatisfaction ->input ['answer ' ])
419+ 'answer ' => $ dbu ->exportArrayToDB ($ ticketSatisfaction ->input ['answer ' ]
421420 )];
422421
423422 $ surveyanswer ->add ($ input );
You can’t perform that action at this time.
0 commit comments