[rt-users] UpdateCc, clickable addresses bug?
Jesse Vincent
jesse at bestpractical.com
Fri Dec 18 15:30:23 EST 2009
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}&>
> %}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20091218/f2764a1c/attachment.sig>
More information about the rt-users
mailing list