Use specified database
JTable Uses same database as in /configuration.php
look for JTableContent (libraries/legacy/table/content.php) line
// Verify that the alias is unique
//$table = JTable::getInstance('Content', 'JTable', array('dbo',$this->getDbo())); //incorrect
$table = JTable::getInstance('Content', 'JTable', array('dbo'=>$this->getDbo())); //correct
Do a search for 'dbo',$this->getDbo() to find possibly more occurences of this bug which are JTableMenuType,JTableNested, JTableLanguage
Joomla 3.5
excerpt from JTable::getInstance:
$db = isset($config['dbo']) ? $config['dbo'] : JFactory::getDbo(); //assoziative array syntax
bug is obvious, isn't it?
Labels |
Removed:
?
|
Labels |
Added:
?
|
Category | ⇒ | Libraries |
Status | New | ⇒ | Confirmed |
Confirmed. Can you provide a pull request?
done, thank you, see #10369
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-05 13:33:45 |
Closed_By | ⇒ | brianteeman |
Closed as we had a PR and that has been merged.
Can anyone comment this really is a bug or a misunderstanding by myself? I need to inform my customers if this will be fixed in any upcoming release. Thanks