Updates marked JS package. Adds more events to the compiler. Fix gh-841 database issue (IF NOT EXISTS). Update Agerix banner link. Adds more clone options.
This commit is contained in:
@ -39,6 +39,12 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
|
||||
'joomla_component'
|
||||
)
|
||||
),
|
||||
'clone' => array(
|
||||
'left' => array(
|
||||
'note_how_to_clone',
|
||||
'clone_me'
|
||||
)
|
||||
),
|
||||
'advance' => array(
|
||||
'fullwidth' => array(
|
||||
'note_add_files_fullpath',
|
||||
@ -872,6 +878,19 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin
|
||||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
|
||||
// check if we have a clone moment
|
||||
if (isset($data['clone_me']) && $data['clone_me'] > 0)
|
||||
{
|
||||
// get the following data from clone_me (component_files_folders)
|
||||
$keys = array('addfiles','addfolders','addfilesfullpath','addfoldersfullpath');
|
||||
foreach ($keys as $key)
|
||||
{
|
||||
$data[$key] = ComponentbuilderHelper::getVar('component_files_folders', $data['clone_me'], 'joomla_component', $key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Set the addfoldersfullpath items to data.
|
||||
if (isset($data['addfoldersfullpath']) && is_array($data['addfoldersfullpath']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user