Removing repetable fields from site view, custom admin view, and admin view. Also updated the compiler, removed permissions on fields to speedup page load in admin and joomla component views

This commit is contained in:
2017-10-12 02:50:14 +02:00
parent c484306d21
commit 39e1e5f078
331 changed files with 4920 additions and 8617 deletions

View File

@ -1526,7 +1526,7 @@ class Fields extends Structure
}
// check if translatable
if (ComponentbuilderHelper::checkString($xmlValue) && $property['translatable'] == 1)
if (ComponentbuilderHelper::checkString($xmlValue) && isset($property['translatable']) && $property['translatable'] == 1)
{
// update lable if field use multiple times
if ($property['name'] === 'label')
@ -1550,7 +1550,7 @@ class Fields extends Structure
// use lang value
$xmlValue = $langValue;
}
elseif (isset($field['alias']) && $field['alias'] && $property['translatable'] == 1)
elseif (isset($field['alias']) && $field['alias'] && isset($property['translatable']) && $property['translatable'] == 1)
{
if ($property['name'] === 'label')
{
@ -1565,7 +1565,7 @@ class Fields extends Structure
$xmlValue = 'JFIELD_ALIAS_PLACEHOLDER';
}
}
elseif (isset($field['title']) && $field['title'] && $property['translatable'] == 1)
elseif (isset($field['title']) && $field['title'] && isset($property['translatable']) && $property['translatable'] == 1)
{
if ($property['name'] === 'label')
{
@ -1577,7 +1577,7 @@ class Fields extends Structure
}
}
// only load value if found or is mandatory
if (ComponentbuilderHelper::checkString($xmlValue) || ($property['mandatory'] == 1 && !$setCustom))
if (ComponentbuilderHelper::checkString($xmlValue) || (isset($property['mandatory']) && $property['mandatory'] == 1 && !$setCustom))
{
// make sure mantory fields are added
if (!ComponentbuilderHelper::checkString($xmlValue))