?
avatar pe7er
pe7er
4 Nov 2016

Joomla's discover functionality adds, without installing, Templates to Extensions table with enabled=1, which makes its Module Positions visible in Module Manager, while the template has not been installed.

Steps to reproduce the issue

Create a new front-end template with some example module positions:
/templates/example/templateDetails.xml

<?xml version="1.0" encoding="utf-8"?>
<extension version="3.6" type="template" client="site">
    <name>EXamPLe</name>
    <version>1.0</version>
    <creationDate>4 November 2016</creationDate>
    <author>Peter Martin</author>
    <positions>
        <position>aaa</position>
        <position>bbb</position>
        <position>ccc</position>
    </positions>
</extension>

In Joomla back-end: Extensions > Manage > Discover
Do not install the template.

discover

Go to Extensions > Modules > create /edit a module,
and notice that the Module Positions of the Template that is not installed, are available.

modulemanager

Expected result

Module Positions in Templates that are not installed, should not be available in the Module Manager

Actual result

Joomla's "Discover" adds discovered (but uninstalled) Templates to the Extension database table, and sets enabled = 1.

discover-database

The enabled field is "1" by default. IMHO that should be "0" by default.

avatar pe7er pe7er - open - 4 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2016
Labels Added: ?
avatar pe7er pe7er - change - 4 Nov 2016
The description was changed
avatar pe7er pe7er - edited - 4 Nov 2016
avatar pe7er pe7er - change - 4 Nov 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-11-04 14:16:01
Closed_By pe7er
avatar pe7er pe7er - close - 4 Nov 2016
avatar pe7er
pe7er - comment - 4 Nov 2016

I've created a PR for this #12753 so I'll close this issue.

Add a Comment

Login with GitHub to post a comment