Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the loading of the table columns #84

Merged
merged 1 commit into from
Apr 3, 2017
Merged

Fix the loading of the table columns #84

merged 1 commit into from
Apr 3, 2017

Conversation

roland-d
Copy link
Contributor

Summary of Changes

The second argument was missing so the fields were loaded as type only but the code is expecting the full information. Setting the second argument to false, loads all details and the test on line 132 will not throw notices because $column is now an object.

Testing Instructions

Try to import the XML schema for a database table for an existing table. There will be several notices Notice: Trying to get property of non-object in D:\wamp64\www\joomla-cms\libraries\joomla\database\importer\mysqli.php on line 148

Apply the patch

The import now runs without any notices.

Documentation Changes Required

None

The second argument was missing so the fields were loaded as type only but the code is expecting the full information. Setting the second argument to false, loads all details and the test on line 132 will not throw notices because $column is now an object.
@roland-d
Copy link
Contributor Author

@mbabker Can we get this into 3.7?

@roland-d
Copy link
Contributor Author

roland-d commented Apr 3, 2017

@mbabker Any news on this? This bug breaks the importer.

@mbabker
Copy link
Contributor

mbabker commented Apr 3, 2017

Well, even when merged here it would still have to be patched separate in the CMS because the CMS isn't yet using this code. So to get it in 3.7 you'll need to patch there.

@mbabker mbabker merged commit 3b5d5d5 into joomla-framework:master Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants