This diff is taken from the current version?  1.3.2?

- Pete McDonnell
  Manager, Technical Services
  Hip Interactive
 

> -----Original Message-----
> From: Tyler Hepworth [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 29, 2004 5:33 PM
> To: User questions and discussions about OTRS.
> Subject: Re: [otrs] Set default of "Answered?" to Yes?
> 
> On Thu, 28 Oct 2004 18:09:50 -0400, Pete McDonnell 
> <[EMAIL PROTECTED]> wrote:
> > Tyler, thanks so much for your detailed information.  As I 
> don't want 
> > tickets that have *just* been created to have the answered = 1 I 
> > believe the option of changing AgentCompose.pm makes more 
> sense.  I've 
> > located the following lines and will list a couple of ways 
> in which I have attempted to
> > change them.   I've seen absolutely no change in the 
> operation of the
> > AgentCompose screen.  Perhaps you can offer a quick pointer or two?
> > 
> > Original:
> >         # set answerd
> >         $Self->{TicketObject}->TicketSetAnswered(
> >             TicketID => $Self->{TicketID},
> >             UserID => $Self->{UserID},
> >             Answered => $GetParam{Answered} || 0,
> >         );
> > I've tried changing the 'Answered' line in the following 
> ways (Sorry 
> > about my COMPLETE ignorance regarding perl programming!!!!)
> > 
> > Answered => '1' || 0,
> > Answered => '8' || 0, (a non-zero and non-one value) 
> Answered => 1 || 
> > 0, Answered => 0 || 1, Etc...
> > 
> > Thanks in advance...
> > 
> 
> 
> Okay,  here is a diff patch that will give you the behavior you want. 
> Note, this breaks the program and cause "Is Ticket Answered" 
> to always show "Yes" regardless of what is in the database; 
> however, despite the showing of "Yes", the value does update 
> appropriately in the backend so you should still get the 
> ultimate goal of what you are trying to achieve.
> 
> --- Kernel/Modules/AgentCompose.pm      (revision 15)
> +++ Kernel/Modules/AgentCompose.pm      (working copy)
> @@ -634,6 +634,7 @@
>        $Param{'StdAttachmentsStrg'} .= "</select>\n";
>      }
>      # answered strg
> +       $Param{Answered} = undef;
>      if (defined($Param{Answered})) {
>          $Param{'AnsweredYesNoOption'} = 
> $Self->{LayoutObject}->OptionStrgHashRef(
>              Data => $Self->{ConfigObject}->Get('YesNoOptions'),
> 
> 
> Hth,
> 
> Tyler Hepworth
> _______________________________________________
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> Support oder Consulting f�r Ihr OTRS System?
> => http://www.otrs.de/
> 
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting f�r Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to