Fixed gh-748 so that tags are able to be added to the list admin view. Makes the adding of tags dynamic based on tag field in the view.
This commit is contained in:
@ -4578,6 +4578,12 @@ class Fields extends Structure
|
||||
$nameListCode, $name, $view, $field, $typeName, $multiple,
|
||||
$custom = false, $options = false
|
||||
) {
|
||||
// check if this is a tag field
|
||||
if ($typeName === 'tag')
|
||||
{
|
||||
// set tags for this view but don't load to DB
|
||||
$this->tagsBuilder[$nameSingleCode] = $nameSingleCode;
|
||||
}
|
||||
// dbSwitch
|
||||
$dbSwitch = true;
|
||||
if (isset($field['list']) && $field['list'] == 2)
|
||||
@ -4585,11 +4591,6 @@ class Fields extends Structure
|
||||
// do not add this field to the database
|
||||
$dbSwitch = false;
|
||||
}
|
||||
elseif ($typeName === 'tag')
|
||||
{
|
||||
// set tags for this view but don't load to DB
|
||||
$this->tagsBuilder[$nameSingleCode] = $nameSingleCode;
|
||||
}
|
||||
elseif (isset($field['settings']->datatype))
|
||||
{
|
||||
// insure default not none if number type
|
||||
|
Reference in New Issue
Block a user