Tweaked the field database area to insure that users are forced to set the database values
This commit is contained in:
@ -972,6 +972,7 @@ class Get
|
||||
$array['view'] = $array['adminview'];
|
||||
// get the admin settings/data
|
||||
$array['settings'] = $this->getAdminViewData($array['view']);
|
||||
|
||||
return $array;
|
||||
}, array_values($component->addadmin_views));
|
||||
}
|
||||
@ -1456,7 +1457,7 @@ class Get
|
||||
$view->fields = array_map(function($field) use($name_single, $name_list)
|
||||
{
|
||||
// set hash
|
||||
static $hash = 1;
|
||||
static $hash = 123467890; // (TODO) I found this making duplicates
|
||||
// load hash
|
||||
$field['hash'] = md5($field['field'] . $hash);
|
||||
// increment hash
|
||||
|
@ -2355,7 +2355,7 @@ class Fields extends Structure
|
||||
// set tags for this view but don't load to DB
|
||||
$this->tagsBuilder[$view_name_single] = $view_name_single;
|
||||
}
|
||||
else
|
||||
elseif (isset($field['settings']->datatype))
|
||||
{
|
||||
// insure default not none if number type
|
||||
$intKeys = array('INT', 'TINYINT', 'BIGINT', 'FLOAT', 'DECIMAL', 'DOUBLE');
|
||||
@ -2474,7 +2474,7 @@ class Fields extends Structure
|
||||
$this->hiddenFieldsBuilder[$view_name_single] .= ',"' . $name . '"';
|
||||
}
|
||||
// set all int fields of this view
|
||||
if ($dbSwitch && ($field['settings']->datatype === 'INT' || $field['settings']->datatype === 'TINYINT' || $field['settings']->datatype === 'BIGINT'))
|
||||
if ($dbSwitch && isset($field['settings']->datatype) && ($field['settings']->datatype === 'INT' || $field['settings']->datatype === 'TINYINT' || $field['settings']->datatype === 'BIGINT'))
|
||||
{
|
||||
if (!isset($this->intFieldsBuilder[$view_name_single]))
|
||||
{
|
||||
|
Reference in New Issue
Block a user