Bug #6132

Not work custom output filter

Added by Andrew andchir 6 months ago. Updated 5 months ago.

Status:Closed Start date:11/24/2011
Priority:Major Due date:
Assignee:- % Done:

0%

Category:Processors
Target version:-
JiraID: Resolution:
Environment:PHP 5.3.6 Affects Revolution Version:Revolution-2.2.0-rc1

Description

Created snippet:

var_dump($input);
$input = floatval(str_replace(' ', '', $input));
return number_format($input,(floor($input) == $input ? 0 : 2),'.',' ');

In other snippet chunk:

[[+price_total]] / [[+price_total:num_format]]

Output:
2850 / string(0) ""

Used parseTpl() - https://github.com/splittingred/getResources/blob/master/core/components/getresources/include.parsetpl.php

In 2.1.3 it worked.

History

Updated by Andrew andchir 5 months ago

Sorry, it's my fault.
You can close.

Updated by Ryan Thrash 5 months ago

  • Status changed from Open to Closed

thanks for reporting back

Also available in: Atom PDF