This fixes #3 to insure that custom/other Data Length/Values can be set.
This commit is contained in:
@@ -1340,6 +1340,7 @@ class Fields extends Structure
|
||||
$this->queryBuilder[$viewName][$name] = array(
|
||||
'type' => $field['settings']->datatype,
|
||||
'lenght' => $field['settings']->datalenght,
|
||||
'lenght_other' => $field['settings']->datalenght_other,
|
||||
'default' => $field['settings']->datadefault,
|
||||
'other' => $field['settings']->datadefault_other,
|
||||
'null_switch' => $field['settings']->null_switch);
|
||||
|
@@ -4647,7 +4647,11 @@ class Interpretation extends Fields
|
||||
}
|
||||
// set the lenght
|
||||
$lenght = '';
|
||||
if (isset($data['lenght']) && $data['lenght'] > 0)
|
||||
if ($data['lenght'] == 'Other' && isset($data['lenght_other']) && $data['lenght_other'] > 0)
|
||||
{
|
||||
$lenght = '('.$data['lenght_other'].')';
|
||||
}
|
||||
elseif (isset($data['lenght']) && $data['lenght'] > 0)
|
||||
{
|
||||
$lenght = '('.$data['lenght'].')';
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.1.8
|
||||
@build 10th May, 2016
|
||||
@build 12th May, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage componentbuilder.php
|
||||
|
@@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.1.8
|
||||
@build 10th May, 2016
|
||||
@build 12th May, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage batch_.php
|
||||
|
@@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.1.8
|
||||
@build 10th May, 2016
|
||||
@build 12th May, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage indenter.php
|
||||
|
@@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.1.8
|
||||
@build 10th May, 2016
|
||||
@build 12th May, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage js.php
|
||||
|
@@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.1.8
|
||||
@build 10th May, 2016
|
||||
@build 12th May, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage minify.php
|
||||
|
Reference in New Issue
Block a user