?
avatar okonomiyaki3000
okonomiyaki3000
12 Nov 2015

JTableNested:rebuild() fires a query that selects the primary key column of the table as well as the alias column. So it is assumed that any table (unless its class overrides this function) with a 'nested' structure will contain an alias column. Alas, this is not true. The #__assets table does not have an alias column.

In practice, perhaps this never comes up because JTableAsset never has any reason to call rebuild but it should not be theoretically possible for this to happen either. JTableAsset should either override rebuild or #__assets should have an alias column or JTableNested should properly handle that case that a table does not have an alias column.

avatar okonomiyaki3000 okonomiyaki3000 - open - 12 Nov 2015
avatar zero-24 zero-24 - change - 12 Nov 2015
Labels Added: ?
avatar wilsonge
wilsonge - comment - 12 Nov 2015

#6307 I merged this 4 days ago which overrides the rebuild method :)

avatar wilsonge wilsonge - change - 12 Nov 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-11-12 10:11:32
Closed_By wilsonge
avatar wilsonge wilsonge - close - 12 Nov 2015

Add a Comment

Login with GitHub to post a comment