[ic] Possible jsq / jsqn bug

John Rennie john-rennie at thechampagneshop.co.uk
Sat Nov 6 13:28:18 EST 2004


Hi,

I think there's a bug in the jsq and jsqn tags. If they
are given nothing, they return nothing instead of
returning ''. (This causes javascript errors on the
multi-page checkout in Mike's demo in some circumstances.)

The following change seems to fix it, although there's
probably a much neater way. (jsq shown, jsqn is similar.)
---  my @lines = split /\r?\n/, $text;
+++  my @lines = ('');
+++  @lines = split /\r?\n/, $text if $text;

Could one of the team please check/amend this?

Thanks,

John.



More information about the interchange-users mailing list