From 1d5500e6e0d7cee44da4c9b853cf68046fe3753c Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 26 Dec 2011 18:09:59 +0100 Subject: [PATCH] Databox field type is required and default is string --- lib/classes/databox/field.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/databox/field.class.php b/lib/classes/databox/field.class.php index 2c9f003fd3..f08f639d2b 100644 --- a/lib/classes/databox/field.class.php +++ b/lib/classes/databox/field.class.php @@ -177,7 +177,7 @@ class databox_field implements cache_cacheableInterface $this->required = !!$row['required']; $this->multi = !!$row['multi']; $this->report = !!$row['report']; - $this->type = $row['type']; + $this->type = $row['type'] ?: self::TYPE_STRING; $this->tbranch = $row['tbranch']; if ($row['dces_element']) {