Browse Source

! Wrong variables passed to comma_format and timeformat data types in the generic list

Signed-off-by: John Rayes <[email protected]>
John Rayes 12 years ago
parent
commit
ba9f6eb618
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/Subs-List.php

+ 2 - 2
Sources/Subs-List.php

@@ -151,9 +151,9 @@ function createList($listOptions)
 
 			// Allow for basic formatting.
 			if (!empty($column['data']['comma_format']))
-				$cur_data['value'] = comma_format($cur_data['value']);
+				$cur_data['value'] = comma_format($list_item[$column['data']['comma_format']]);
 			elseif (!empty($column['data']['timeformat']))
-				$cur_data['value'] = timeformat($cur_data['value']);
+				$cur_data['value'] = timeformat($list_item[$column['data']['timeformat']]);
 
 			// Set a style class for this column?
 			if (isset($column['data']['class']))