Fixed the getFieldName method to always fall back to global name if none is set in the xml.

This commit is contained in:
2018-03-11 04:59:46 +02:00
parent ee949fbe6e
commit 1991a46689
4 changed files with 13 additions and 8 deletions

View File

@ -2346,7 +2346,13 @@ class Get
}
else
{
$name = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field['settings']->xml, 'name="', '"'));
// get value from xml
$xml = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field['settings']->xml, 'name="', '"'));
// check if a value was found
if (ComponentbuilderHelper::checkString($xml))
{
$name = $xml;
}
}
// exit foreach loop
break;

View File

@ -12866,7 +12866,6 @@ class Interpretation extends Fields
'###views###' => $listViewName);
$view = '';
$viewType = 0;
// set the custom table key
$dbkey = 'g';
foreach ($this->componentData->config as $field)