Mailing List Archive

Safe error
Although the below code from my flypage seems to work, it causes error
log entries like:

Store /cgi-bin/Store/SKU.html Safe: syntax error at (eval 2087) line 1,
near ">"
>
> > 0
>

The code is:

[if type=explicit compare="[calc][data table=sku_notes
column=added_charge key=[item-field sku]] > 0[/calc]"]

NOTE: Added charge: [currency][data table=sku_notes column=added_charge
key=[item-field sku]]
[/currency]

[/if]

As I said the code works, but I'd prefer less error log activity. Does
anyone have a suggestion?

DB

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: Safe error [ In reply to ]
On 09/27/2015 06:24 PM, DB wrote:
> Although the below code from my flypage seems to work, it causes error
> log entries like:
>
> Store /cgi-bin/Store/SKU.html Safe: syntax error at (eval 2087) line 1,
> near ">"
>>
>> > 0
>>
>
> The code is:
>
> [if type=explicit compare="[calc][data table=sku_notes
> column=added_charge key=[item-field sku]] > 0[/calc]"]
>
> NOTE: Added charge: [currency][data table=sku_notes column=added_charge
> key=[item-field sku]]
> [/currency]
>
> [/if]
>
> As I said the code works, but I'd prefer less error log activity. Does
> anyone have a suggestion?

[tmp added_charge][data table=sku_notes column=added_charge key=[item-field sku]][/tmp]
[if scratch added_charge > 0]NOTE: Added charge: [currency][scratch added_charge][/currency][/if]

saves you a db query :-). Maybe the error goes away as well :-).

It looks like added_charge can be an empty string - which doesn't make sense to me.

Regards
Racke


--
Perl and Dancer Development

Visit our Perl::Dancer conference 2015.
More information on https://www.perl.dance.


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users