Added buttons to edit cutomcode directly from where it is added in other areas around the component. This will improve the customcode workflow in JCB.

This commit is contained in:
2019-01-31 23:44:21 +02:00
parent 8cdf056ad4
commit 1a538e71d7
52 changed files with 1407 additions and 236 deletions

View File

@@ -1747,6 +1747,13 @@ class ComponentbuilderModelJoomla_components extends JModelList
'views' => 'custom_codes',
'not_base64' => array(),
'name' => 'system_name'
),
// #__componentbuilder_validation_rule (n)
'validation_rule' => array(
'search' => array('id', 'name', 'php'),
'views' => 'validation_rules',
'not_base64' => array(),
'name' => 'name'
)
);
@@ -1779,7 +1786,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
}
}
// return result ready for a.query
if ('query' === $type && isset($this->codeSearchKeys[$target]))
if (('query' === $type || 'query_' === $type) && isset($this->codeSearchKeys[$target]))
{
// set the targets
$codeSearchTarget = $this->codeSearchKeys[$target];