Added the feature to add custom Joomla fields to your components, requested in gh-247. Added plugin events to the dynamic get area. Added the script to remove field build in relation to component when component gets uninstalled. Improved the getForm method in the model to allow the passing of options to the form. Made further improvements to the implementation of the return parameter across the component redirecting behavior. Made some changes to the list layout views using the field relations area.
This commit is contained in:
@ -370,6 +370,13 @@ class Get
|
||||
*/
|
||||
public $setTagHistory = false;
|
||||
|
||||
/**
|
||||
* The Joomla Fields Switch
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
public $setJoomlaFields = false;
|
||||
|
||||
/**
|
||||
* The site edit views
|
||||
*
|
||||
@ -1078,6 +1085,10 @@ class Get
|
||||
{
|
||||
$this->setTagHistory = true;
|
||||
}
|
||||
if (isset($array['joomla_fields']) && $array['joomla_fields'] && !$this->setJoomlaFields)
|
||||
{
|
||||
$this->setJoomlaFields = true;
|
||||
}
|
||||
// has become a lacacy issue, can't remove this
|
||||
$array['view'] = $array['adminview'];
|
||||
// get the admin settings/data
|
||||
@ -2974,6 +2985,15 @@ class Get
|
||||
{
|
||||
unset($result->global);
|
||||
}
|
||||
// load the events if any is set
|
||||
if ($result->gettype == 1 && ComponentbuilderHelper::checkJson($result->plugin_events))
|
||||
{
|
||||
$result->plugin_events = json_decode($result->plugin_events, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
$result->plugin_events = '';
|
||||
}
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
Reference in New Issue
Block a user