X-Git-Url: http://git.uio.no/git/?p=usit-rt.git;a=blobdiff_plain;f=share%2Fhtml%2FApprovals%2Findex.html;h=dbdc11ec5fe35a85dc91d8868d1ee811f730d5d7;hp=cc964d846672bf8d368eb4fae45ef517831ca01e;hb=c33a4027369d767810c2d24ad54d6e61599ff823;hpb=320f00929001b075300be1ef185a04ce030223fd diff --git a/share/html/Approvals/index.html b/share/html/Approvals/index.html index cc964d8..dbdc11e 100644 --- a/share/html/Approvals/index.html +++ b/share/html/Approvals/index.html @@ -72,12 +72,9 @@ foreach my $arg ( keys %ARGS ) { next if $skip_update; if ( $ARGS{ "Approval-" . $ticket->Id . "-Notes" } ) { - my $notes = MIME::Entity->build( - Data => [ $ARGS{ "Approval-" . $ticket->Id . "-Notes" } ] + my ( $notesval, $notesmsg ) = $ticket->Correspond( + Content => $ARGS{ "Approval-" . $ticket->Id . "-Notes" } ); - RT::I18N::SetMIMEEntityToUTF8($notes); # convert text parts into utf-8 - - my ( $notesval, $notesmsg ) = $ticket->Correspond( MIMEObj => $notes ); if ($notesval) { push ( @actions, loc("Approval #[_1]: Notes recorded",$ticket->Id )); } else {