?
avatar Denitz
Denitz
8 Oct 2020

Steps to reproduce the issue

Create custom table class with assets (property $asset_id is required) and try to execute parent::store(true).

Or just edit libraries/src/Table/Content.php, replace at the bottom return parent::store($updateNulls); with return parent::store(true); to emulate the real case, next try to save an article.

Expected result

Save without errors.

Actual result

See error.

System information (as much as possible)

Joomla 3.9.22

Additional comments

The issue is that JTable::store() uses $updateNulls param for saving asset table instance as well and it will fail due to NULL alias property which is missed in #__assets table.

avatar Denitz Denitz - open - 8 Oct 2020
avatar joomla-cms-bot joomla-cms-bot - change - 8 Oct 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Oct 2020
avatar Quy Quy - change - 8 Oct 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-10-08 14:27:11
Closed_By Quy
avatar Quy Quy - close - 8 Oct 2020
avatar Quy
Quy - comment - 8 Oct 2020

PR #30996

Add a Comment

Login with GitHub to post a comment