[rt-users] UpdateCc, clickable addresses bug?

BÁLINT Bekény balint.bekeny at docca.hu
Sat Dec 19 06:15:12 EST 2009


Of course.

--
Bekény


2009/12/18 Jesse Vincent <jesse at bestpractical.com>

>
>
> Bekeny,
>
> Could you do me the favor of resending as a unified diff? (diff -u)
>
> Thanks!
>
> On Thu 17.Dec'09 at 23:24:11 +0100, BÁLINT Bekény wrote:
> > Hi Jesse,
> >
> >
> > I attached a patch for 3.8.6.
> > I'm not sure it is the best solution for this problem but it seems a
> working
> > one.
> > Hope I helped.
> >
> >
> > Best regards,
> > --
> > Bekeny
> >
> >
> > 2009/12/17 Jesse Vincent <jesse at bestpractical.com>
> >
> >
> >
> >
> >     On Thu 17.Dec'09 at 13:43:41 +0100, BALINT Bekeny wrote:
> >     > Hi List,
> >     >
> >     >
> >     > I have the following problem in 3.8.6 (sorry I can't try it on
> 3.8.7
> >     now).
> >     > If I have a header line in an email like this (or in Cc field):
> >     >
> >     > To: "'Foo Bar'" <foo.bar at foobar.hu>
> >     > of
> >     > To: 'Foo2 Bar2' <foo2.bar2 at foobar2.hu>
> >     >
> >     > on the Update.html page (UpdateCc component) RT generates the code:
> >     >
> >     > [...]
> >     >
> >     > It seems that ' disturbs the generated JavaScript code.
> >     > Is it a known issue?
> >
> >     I didn't know about it.
> >
> >     > Or a Bug?
> >
> >     It sure looks like a bug. Will you open a ticket? A patch would be
> much
> >     appreciated if you or anyone else is up to it.
> >
> >     > Or a Feature?
> >
> >     It's definitely not one of these.
> >
> >     -Jesse
> >
> >     -----BEGIN PGP SIGNATURE-----
> >     Version: GnuPG v1.4.9 (GNU/Linux)
> >
> >     iEYEARECAAYFAksqQg0ACgkQEi9d9xCOQEbYEACeN5Wphc16WbGraqy9ayXsPeVt
> >     uHYAn1I2sS4AHEqkKNeK4uY+TZRwgjao
> >     =N12W
> >     -----END PGP SIGNATURE-----
> >
> >
> >
>
> > *** share/html/Ticket/Elements/UpdateCc       Mon Nov 23 23:11:39 2009
> > --- local/html/Ticket/Elements/UpdateCc       Thu Dec 17 23:14:00 2009
> > ***************
> > *** 55,61 ****
> >   id="UpdateCc-<%$addr%>"
> >   name="UpdateCc-<%$addr%>"
> >       type="checkbox"
> > !     onClick="checkboxToInput('UpdateCc',
> 'UpdateCc-<%$addr%>','<%$txn_addresses{$addr}->format%>' );
> $(UpdateIgnoreAddressCheckboxes).value=1"
> >       <% $ARGS{'UpdateCc-'.$addr} ? 'checked="checked"' : ''%> > <&
> /Elements/ShowUser, Address => $txn_addresses{$addr}&>
> >   %}
> >   </td></tr>
> > --- 55,63 ----
> >   id="UpdateCc-<%$addr%>"
> >   name="UpdateCc-<%$addr%>"
> >       type="checkbox"
> > ! % my $clean_addr = $txn_addresses{$addr}->format;
> > ! % $clean_addr =~ s/'//g;
> > !     onClick="checkboxToInput('UpdateCc',
> 'UpdateCc-<%$addr%>','<%$clean_addr%>' );
> $(UpdateIgnoreAddressCheckboxes).value=1"
> >       <% $ARGS{'UpdateCc-'.$addr} ? 'checked="checked"' : ''%> > <&
> /Elements/ShowUser, Address => $txn_addresses{$addr}&>
> >   %}
> >   </td></tr>
> > ***************
> > *** 66,72 ****
> >       id="UpdateBcc-<%$addr%>"
> >       name="UpdateBcc-<%$addr%>"
> >       type="checkbox"
> > !     onClick="checkboxToInput('UpdateBcc',
> 'UpdateBcc-<%$addr%>','<%$txn_addresses{$addr}->format%>' );
> $(UpdateIgnoreAddressCheckboxes).value=1"
> >           <% $ARGS{'UpdateBcc-'.$addr} ? 'checked="checked"' : ''%>>
> >   <& /Elements/ShowUser, Address => $txn_addresses{$addr}&>
> >   %}
> > --- 68,76 ----
> >       id="UpdateBcc-<%$addr%>"
> >       name="UpdateBcc-<%$addr%>"
> >       type="checkbox"
> > ! % my $clean_addr = $txn_addresses{$addr}->format;
> > ! % $clean_addr =~ s/'//g;
> > !     onClick="checkboxToInput('UpdateBcc',
> 'UpdateBcc-<%$addr%>','<%$clean_addr%>' );
> $(UpdateIgnoreAddressCheckboxes).value=1"
> >           <% $ARGS{'UpdateBcc-'.$addr} ? 'checked="checked"' : ''%>>
> >   <& /Elements/ShowUser, Address => $txn_addresses{$addr}&>
> >   %}
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAksr5l8ACgkQEi9d9xCOQEY0cQCgooq/46j4HCDwE5miUkMto6nv
> DZgAoLU0rQvdttmcTwYHw8RRf5xvr1b+
> =PnES
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20091219/b77304d7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clean_address_in_RT_3_8_6.patch
Type: application/octet-stream
Size: 1322 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20091219/b77304d7/attachment.obj>


More information about the rt-users mailing list