? bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar svanschu
svanschu
22 Oct 2023

In this method it tries to load the field 'id' from the extensions table. But there isn't any field called id in this table. The id field for the extenions table is called extension_id

Pull Request for Issue # .

Summary of Changes

Moved the select id statement into the module if clause and create a new select extension_id as id clause for the else branch

Testing Instructions

class testingInstallerScript extends InstallerScript
{
    public function postflight($type, $parent)
    {
        $extid = $this->getInstances(false);
    }
}

Actual result BEFORE applying this Pull Request

Unknown column 'id' in 'field list'

Expected result AFTER applying this Pull Request

successfully return extension id in an array

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar svanschu svanschu - open - 22 Oct 2023
avatar svanschu svanschu - change - 22 Oct 2023
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Oct 2023
Category Libraries
avatar svanschu
svanschu - comment - 22 Oct 2023

@richard67 as suggested the PR for 4.4-dev

avatar HLeithner
HLeithner - comment - 22 Oct 2023

wow nobody noticed this issue in the at least last 7 years?

avatar svanschu
svanschu - comment - 22 Oct 2023

wow nobody noticed this issue in the at least last 7 years?

Or just overriden the method without fixing the source. Or just done it on it's own.

I only noticed the method because I wanted to know what is all available and read the class code. It's as well the first time I ever used it.

avatar alikon alikon - test_item - 1 Nov 2023 - Tested successfully
avatar alikon
alikon - comment - 1 Nov 2023

I have tested this item ✅ successfully on dca2c7e


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

avatar Quy Quy - test_item - 2 Nov 2023 - Tested successfully
avatar Quy
Quy - comment - 2 Nov 2023

I have tested this item ✅ successfully on dca2c7e


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

avatar Quy Quy - change - 2 Nov 2023
Status Pending Ready to Commit
Labels Added: bug PR-4.4-dev
avatar Quy
Quy - comment - 2 Nov 2023

RTC


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

avatar Quy Quy - change - 2 Nov 2023
Labels Added: ?
avatar laoneo laoneo - change - 3 Nov 2023
Labels Added: ?
Removed: ?
avatar laoneo laoneo - close - 3 Nov 2023
avatar laoneo laoneo - merge - 3 Nov 2023
avatar laoneo laoneo - change - 3 Nov 2023
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-11-03 13:05:18
Closed_By laoneo
Labels Added: ?
Removed: ?
avatar laoneo
laoneo - comment - 3 Nov 2023

Thanks!

Add a Comment

Login with GitHub to post a comment