Add missing fr translation for autosave feature
[manu/RT-Extension-Drafts.git] / html / Callbacks / Drafts / Ticket / Update.html / Initial
1 <%init>
2 my $Ticket = LoadTicket($$ARGSRef{'id'});
3 if ( $$ARGSRef{'LoadDraft'} ) {
4     my $Draft = RT::Attribute->new( $session{'CurrentUser'} );
5     $Draft->LoadByNameAndObject( Object => $session{'CurrentUser'}->UserObj, Name => 'Draft-'.$Ticket->id );
6     $$ARGSRef{'UpdateContent'} = $Draft->Content if ( $Draft && $Draft->Content );
7     $$ARGSRef{'UpdateContentType'} = $Draft->ContentType if ( $Draft && $Draft->ContentType );
8 }
9 </%init>
10 <%args>
11 $ARGSRef => undef
12 </%args>