[ic] Change in behaviour of currency tag in latest build
Mike Heins
mike at perusion.com
Thu Aug 21 16:53:46 EDT 2003
Quoting John Rennie (john.rennie at thechampagneshop.co.uk):
> Hi all,
>
> I recently moved my site from 4.9.3-200211090658 to the latest build,
> and
> hit a problem with the currency tag.
>
> If I run:
> [calc]
> return $Tag->currency(0,0,10);
> [/calc]
> <p>
> [calc]
> return $Tag->currency({ convert => 0, noformat => 0},10);
> [/calc]
> in the ITL code snippet part of the UI (a great new feature) or on a
> page,
> the output is:
> 0
> $10.00
>
> The error log says (wrapped):
> 81.96.57.8 7pVZhSwX:81.96.57.8 - [21/August/2003:13:41:23 -0400] demo1
> /i/demo1/admin/test_code.html Safe: Can't use string ("10") as a HASH
> ref
> while "strict refs" in use at /home/demo1/interchange/lib/Vend/Util.pm
> line
> 462.
> >
> >
> > return $Tag->currency(0,0,10);
> >
>
> Is this a configuration difference between the old and new servers, or
> an
> Interchange bug? I can't see anything in the 'What's new' that might
> cover
> it. I've (obviously) worked round it by moving to the more formal call,
> but it may be an issue for other users.
It is an incompatibility that we will note in the UPGRADE document at
5.0 beta. It was unfortunately unavoidable if we were to allow an
upgrade path for [currency ...] as it didn't use addAttr.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.513.523.7621 <mike at perusion.com>
There's nothing sweeter than life nor more precious than time.
-- Barney
More information about the interchange-users
mailing list