Summary


The "extension manager" / discover menu allows installing an extension that is already present on the disk.

When installing a components with the discover menu, the "#__assets" records is not create like with the "extension manager" / install.

So I suggest to do the same and add the

 

        // Register the component container just under root in the assets table.
        $asset = JTable::getInstance('Asset');
        $asset->name = $row->element;
        $asset->parent_id = 1;
        $asset->rules = '{}';
        $asset->title = $row->name;
        $asset->setLocation(1, 'last-child');
        if (!$asset->store())
        {
            // Install failed, roll back changes
            $this->parent->abort(JText::sprintf('JLIB_INSTALLER_ABORT_COMP_INSTALL_ROLLBACK', $db->stderr(true)));
            return false;
        }

at the end of the discover_install() function.

 

This affect all the version of Joomla from 2.5 till 3.2

 
Opened On:
7 Feb 2014, 9:16 by Edwin CHERONT
Closed On:
10 Feb 2014, 12:43
Status:
Closed

Filed Under

  • ACL
  • No Platform Implications

Responses

Posted on 10 Feb 2014, 12:43 by Valentin Despa

Thank you for your report.This tracker is currently CLOSED and no longer accepting reports. Because of technical reasons we can't automatically move your report to the new tracker.Please repost your issue here:http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103Thank you for your understanding and help!
Posted on 11 Feb 2014, 1:50 by Edwin CHERONT

Here it is the new Bugtracker link

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=33260