Databox field type is required and default is string

This commit is contained in:
Romain Neutron
2011-12-26 18:09:59 +01:00
parent 6d0d60d713
commit 1d5500e6e0

View File

@@ -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'])
{