Fixed gh-678 moved the compilation success message out of the redirection message to a user state message, that get loaded to the page on successful compilation. This preserves the button scripts needed to install the compiled packages.
This commit is contained in:
@ -1315,21 +1315,24 @@ class Fields extends Structure
|
||||
$tab_name = "publishing";
|
||||
|
||||
$attributes = array(
|
||||
'name' => $field_name,
|
||||
'type' => 'hidden',
|
||||
'default' => $component . ' ' . $nameSingleCode
|
||||
'name' => $field_name,
|
||||
'type' => 'hidden',
|
||||
'default' => $component . ' ' . $nameSingleCode
|
||||
);
|
||||
ComponentbuilderHelper::xmlComment(
|
||||
$fieldSetXML,
|
||||
$this->setLine(__LINE__) . " Was added due to Permissions JS needing a Title field"
|
||||
$this->setLine(__LINE__)
|
||||
. " Was added due to Permissions JS needing a Title field"
|
||||
);
|
||||
ComponentbuilderHelper::xmlComment(
|
||||
$fieldSetXML,
|
||||
$this->setLine(__LINE__) . " Let us know at gh-629 should this change"
|
||||
$this->setLine(__LINE__)
|
||||
. " Let us know at gh-629 should this change"
|
||||
);
|
||||
ComponentbuilderHelper::xmlComment(
|
||||
$fieldSetXML,
|
||||
$this->setLine(__LINE__) . " https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235"
|
||||
$this->setLine(__LINE__)
|
||||
. " https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235"
|
||||
);
|
||||
$fieldXML = $fieldSetXML->addChild('field');
|
||||
ComponentbuilderHelper::xmlAddAttributes($fieldXML, $attributes);
|
||||
@ -1486,6 +1489,7 @@ class Fields extends Structure
|
||||
{
|
||||
// set the permission for later
|
||||
$this->hasPermissions[$nameSingleCode] = true;
|
||||
|
||||
// break out here
|
||||
return true;
|
||||
}
|
||||
@ -1508,6 +1512,7 @@ class Fields extends Structure
|
||||
{
|
||||
// set the permission for later
|
||||
$this->hasPermissions[$nameSingleCode] = true;
|
||||
|
||||
// break out here
|
||||
return true;
|
||||
}
|
||||
@ -1530,12 +1535,14 @@ class Fields extends Structure
|
||||
{
|
||||
// set the permission for later
|
||||
$this->hasPermissions[$nameSingleCode] = true;
|
||||
|
||||
// break out here
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->hasPermissions[$nameSingleCode];
|
||||
}
|
||||
|
||||
@ -4981,7 +4988,8 @@ class Fields extends Structure
|
||||
// load the category builder - TODO must move all to single view
|
||||
$this->categoryBuilder[$nameListCode] = array('code' => $name,
|
||||
'name' => $listLangName,
|
||||
'extension' => $_extension);
|
||||
'extension' => $_extension,
|
||||
'filter' => $field['filter']);
|
||||
// also set code name for title alias fix
|
||||
$this->catCodeBuilder[$nameSingleCode] = array('code' => $name,
|
||||
'views' => $otherViews,
|
||||
@ -5800,7 +5808,9 @@ class Fields extends Structure
|
||||
&& ComponentbuilderHelper::checkArray(
|
||||
$this->categoryBuilder[$nameListCode]
|
||||
)
|
||||
&& isset($this->categoryBuilder[$nameListCode]['extension']))
|
||||
&& isset($this->categoryBuilder[$nameListCode]['extension'])
|
||||
&& isset($this->categoryBuilder[$nameListCode]['filter'])
|
||||
&& $this->categoryBuilder[$nameListCode]['filter'] >= 1)
|
||||
{
|
||||
$field_filter_sets[] = $this->_t(2) . '<field';
|
||||
$field_filter_sets[] = $this->_t(3) . 'type="category"';
|
||||
|
@ -15723,10 +15723,13 @@ class Interpretation extends Fields
|
||||
{
|
||||
$categoryCodeName = $this->categoryBuilder[$nameListCode]['code'];
|
||||
$addCategory = true;
|
||||
$addCategoryFilter
|
||||
= $this->categoryBuilder[$nameListCode]['filter'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$addCategory = false;
|
||||
$addCategory = false;
|
||||
$addCategoryFilter = 0;
|
||||
}
|
||||
// setup the query
|
||||
$query = "//" . $this->setLine(__LINE__) . " Get the user object.";
|
||||
@ -15842,7 +15845,7 @@ class Interpretation extends Fields
|
||||
// set other filters
|
||||
$query .= $this->setFilterQuery($nameListCode);
|
||||
// add the category
|
||||
if ($addCategory)
|
||||
if ($addCategory && $addCategoryFilter >= 1)
|
||||
{
|
||||
$query .= PHP_EOL . PHP_EOL . $this->_t(2) . "//" . $this->setLine(
|
||||
__LINE__
|
||||
@ -18653,7 +18656,9 @@ class Interpretation extends Fields
|
||||
&& ComponentbuilderHelper::checkArray(
|
||||
$this->categoryBuilder[$nameListCode]
|
||||
)
|
||||
&& isset($this->categoryBuilder[$nameListCode]['extension']))
|
||||
&& isset($this->categoryBuilder[$nameListCode]['extension'])
|
||||
&& isset($this->categoryBuilder[$nameListCode]['filter'])
|
||||
&& $this->categoryBuilder[$nameListCode]['filter'] >= 1)
|
||||
{
|
||||
// set filter
|
||||
$filter[] = PHP_EOL . $this->_t(2) . "//"
|
||||
@ -22442,7 +22447,9 @@ class Interpretation extends Fields
|
||||
&& ComponentbuilderHelper::checkArray(
|
||||
$this->categoryBuilder[$nameListCode]
|
||||
)
|
||||
&& isset($this->categoryBuilder[$nameListCode]['extension']))
|
||||
&& isset($this->categoryBuilder[$nameListCode]['extension'])
|
||||
&& isset($this->categoryBuilder[$nameListCode]['filter'])
|
||||
&& $this->categoryBuilder[$nameListCode]['filter'] >= 1)
|
||||
{
|
||||
// is found so add it
|
||||
$add_category = true;
|
||||
@ -22466,18 +22473,28 @@ class Interpretation extends Fields
|
||||
if (isset($filter['multi'])
|
||||
&& $filter['multi'] == 2)
|
||||
{
|
||||
// if this is a category we should make sure it must be added
|
||||
if (!$add_category && $filter['type'] === 'category')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
elseif ($add_category && $filter['type'] === 'category')
|
||||
{
|
||||
// already added here so no need to add again
|
||||
$add_category = false;
|
||||
}
|
||||
// check if this was an access field
|
||||
elseif ($filter['type'] === 'accesslevel')
|
||||
{
|
||||
// already added here so no need to add again
|
||||
$add_access_levels = false;
|
||||
}
|
||||
// add the header
|
||||
$headers[]
|
||||
= 'JHtml::_(\'formbehavior.chosen\', \'.multiple'
|
||||
. $filter['class']
|
||||
. '\', null, array(\'placeholder_text_multiple\' => \'- \' . JText::_(\''
|
||||
. $filter['lang_select'] . '\') . \' -\'));';
|
||||
// check if this was an access field
|
||||
if ($filter['type'] === 'accesslevel')
|
||||
{
|
||||
// already added here so no need to add again
|
||||
$add_access_levels = false;
|
||||
}
|
||||
}
|
||||
elseif ($add_category && $filter['type'] === 'category')
|
||||
{
|
||||
|
Reference in New Issue
Block a user