From eea0a5e7c76b7c69740c00edd6263596873a7fba Mon Sep 17 00:00:00 2001 From: flynsarmy Date: Thu, 31 Jul 2014 10:05:13 +1000 Subject: [PATCH] Support custom currency formats --- modules/backend/widgets/Grid.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/backend/widgets/Grid.php b/modules/backend/widgets/Grid.php index 11de95c86..b8d3cc05f 100644 --- a/modules/backend/widgets/Grid.php +++ b/modules/backend/widgets/Grid.php @@ -226,7 +226,7 @@ class Grid extends WidgetBase case 'currency': $item['type'] = 'numeric'; - $item['format'] = '$0,0.00'; + $item['format'] = isset($column['format']) ? $column['format'] : '$0,0.00'; break; case 'checkbox': @@ -258,4 +258,4 @@ class Grid extends WidgetBase $this->addJs('js/datagrid.js', 'core'); } -} \ No newline at end of file +}