From 91e7e8b950b5fe4f6050a4e081a0e0b2bc0a482c Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 22 Oct 2016 03:10:50 +1100 Subject: [PATCH] List column number type was falling back to text Since custom list column types an exception is thrown for unknowns. This makes number known. Fixes #2438 --- modules/backend/widgets/Lists.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/backend/widgets/Lists.php b/modules/backend/widgets/Lists.php index 1bd0434c0..3c92acc3c 100644 --- a/modules/backend/widgets/Lists.php +++ b/modules/backend/widgets/Lists.php @@ -912,6 +912,14 @@ class Lists extends WidgetBase return htmlentities($value, ENT_QUOTES, 'UTF-8', false); } + /** + * Process as number, proxy to text + */ + protected function evalNumberTypeValue($record, $column, $value) + { + return $this->evalTextTypeValue($record, $column, $value); + } + /** * Process as partial reference */