? ? Success

User tests: Successful: Unsuccessful:

avatar pe7er
pe7er
4 Nov 2016

Pull Request for Issue #12751

Summary of Changes

This PR sets the default value for "enabled" in the database table "#__extensions" to 0.

Testing Instructions

Before PR

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

After PR

Remove the Discovered but Uninstalled Template from the #__extensions table:
discover-database

Install this PR and
Extensions > Manage > Discover
Do not install the template.

The Module Positions of the Uninstalled Template should not be visible in the Module Manager.

Note: If you install the template via Discover it should become enabled.
Extensions > Manage > Discover > Install the template
and test if it's available in Extensions > Templates and/or
check in the database in #__extensions if will the enabled field has been changed to 1.

avatar pe7er pe7er - open - 4 Nov 2016
avatar pe7er pe7er - change - 4 Nov 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2016
Category SQL Installation Postgresql MS SQL Unit Tests
avatar pe7er pe7er - change - 4 Nov 2016
Title
extension databasetable - set enabled to 0 by default
database table #__extensions - Set enabled to 0 by default
Labels Added: ? ?
avatar pe7er pe7er - edited - 4 Nov 2016
avatar pe7er pe7er - change - 4 Nov 2016
Title
extension databasetable - set enabled to 0 by default
database table #__extensions - Set enabled to 0 by default
avatar pe7er pe7er - change - 4 Nov 2016
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2016
Category SQL Installation Postgresql MS SQL Unit Tests SQL Administration Components Postgresql MS SQL Installation Unit Tests
avatar pe7er
pe7er - comment - 4 Nov 2016

I've created 3 SQL update files to correct the issue at existing sites

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
The description was changed
Labels Removed: ?
avatar pe7er pe7er - edited - 4 Nov 2016
avatar PhilETaylor
PhilETaylor - comment - 5 Nov 2016

Should discover do anything other than discover the template? - it should not be creating rows in database surely? isnt that the real problem here?

avatar mbabker
mbabker - comment - 5 Nov 2016

If you want to rewrite how that's tracked, have at it. Right now discover DOES add records to the database to tell Joomla it has found new extensions in the filesystem but they are not fully installed and that's how it keeps track of those discoveries.

avatar PhilETaylor
PhilETaylor - comment - 5 Nov 2016

Ouch - I thought Discover should just discover on visiting the page, and give a list, there is no need to really track anything, then when its installed that's when db entries should be written IMHO.

avatar mehranfazili
mehranfazili - comment - 13 Nov 2016

Followed the instruction and worked totally fine. The test was successful here.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12753.

avatar brianteeman brianteeman - alter_testresult - 14 Nov 2016 - mehranfazili: Tested successfully
avatar brianteeman
brianteeman - comment - 14 Nov 2016

I have tested this item successfully on eb8e41a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12753.

avatar brianteeman brianteeman - test_item - 14 Nov 2016 - Tested successfully
avatar brianteeman brianteeman - change - 15 Nov 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 15 Nov 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12753.

avatar brianteeman brianteeman - change - 15 Nov 2016
Milestone Added:
avatar rdeutz rdeutz - change - 15 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-15 21:39:51
Closed_By rdeutz
avatar rdeutz rdeutz - close - 15 Nov 2016
avatar rdeutz rdeutz - merge - 15 Nov 2016
avatar rdeutz rdeutz - reference | 20557af - 15 Nov 16
avatar rdeutz rdeutz - merge - 15 Nov 2016
avatar rdeutz rdeutz - close - 15 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 15 Nov 2016
Category SQL Installation Postgresql MS SQL Unit Tests Administration Components SQL Administration com_admin Postgresql MS SQL Installation Unit Tests Components

Add a Comment

Login with GitHub to post a comment