No Code Attached Yet bug
avatar svanschu
svanschu
21 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

        // Select the item(s) and retrieve the id
        $query->select($db->quoteName('id'));

        if ($isModule) {
            $query->from($db->quoteName('#__modules'))
                ->where($db->quoteName('module') . ' = :extension');
        } else {
            $query->from($db->quoteName('#__extensions'))
                ->where($db->quoteName('element') . ' = :extension');
        }

It would need to look like

        // Select the item(s) and retrieve the id
       
        if ($isModule) {
            $query->select($db->quoteName('id'))
                  ->from($db->quoteName('#__modules'))
                ->where($db->quoteName('module') . ' = :extension');
        } else {
            $query->select($db->quoteName('extension_id') . ' as id')
                ->from($db->quoteName('#__extensions'))
                ->where($db->quoteName('element') . ' = :extension');
        }
avatar svanschu svanschu - open - 21 Oct 2023
avatar joomla-cms-bot joomla-cms-bot - change - 21 Oct 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Oct 2023
avatar svanschu
svanschu - comment - 21 Oct 2023

I'm working on it and will prepare a PR

avatar richard67 richard67 - change - 21 Oct 2023
Labels Added: bug
avatar richard67 richard67 - labeled - 21 Oct 2023
avatar svanschu svanschu - change - 21 Oct 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-10-21 16:11:03
Closed_By svanschu
avatar svanschu svanschu - close - 21 Oct 2023
avatar svanschu
svanschu - comment - 21 Oct 2023

Fixed in PR #42192

avatar svanschu
svanschu - comment - 22 Oct 2023

PR #42199

Add a Comment

Login with GitHub to post a comment