[Rt-devel] PATCH: Set/Retrieve custom field value by CLI
Ruslan Zakirov
ruslan.zakirov at gmail.com
Fri Dec 30 04:43:36 EST 2005
On 12/30/05, lwang <lwang at clusterfs.com> wrote:
> Sorry, I don't reply to all previously.
>
> Jesse Vincent wrote:
> >
> >
> >>Any expert of RT, could you review my patch? This patch is against RT-3.5.5.
> >>
> >>I will be very happy if the patch is accepted by the released RT-3.5.6.
> >
> >
> > 3.5.6 is already out, but I understand the sentiment :)
> >
> >
> >>+ else {
> >>+ ($n, $s) = $ticket->_AddCustomFieldValue(
> >>+ Field => $cf, Value => $val );
> >>+ $s =~ s/^# // if defined $s;
> >>+ }
> >
> >
> > That leading _ scares me. Any reason you're using the private
> > _AddCustomFieldValue, rather than the public AddCustomFieldValue?
>
> Yes, I don't like to call the private method. But I found that
> AddCustomFieldValue doesn't return any code and message. As you have
> seen, I need the return code and message.
>
> Am I wrong?
Yes. It returns, perl returns from function last calculated value.
>
> Thanks.
>
> - Wang
> _______________________________________________
> Rt-devel mailing list
> Rt-devel at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>
--
Best regards, Ruslan.
More information about the Rt-devel
mailing list