?
avatar tecpromotion
tecpromotion
19 Oct 2019

Steps to reproduce the issue

Go to Articles: Options -> Editing Layout tab and switch Publishing Options to Hide

Create a new article and save.

Expected result

Article is saved.

Actual result

Error message
Save failed with the following error: Field 'metakey' doesn't have a default value

Screenshot 2019-10-19 11 00 42

System information (as much as possible)

Joomla! 4.0.0-alpha12 Alpha [ Amani ] 17-October-2019 20:13 GMT
PHP 7.3.10
MySQL 5.7 (10.4.6-MariaDB)

Additional comments

thanks @brianteeman #26629

avatar tecpromotion tecpromotion - open - 19 Oct 2019
avatar joomla-cms-bot joomla-cms-bot - change - 19 Oct 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Oct 2019
avatar brianteeman
brianteeman - comment - 19 Oct 2019

I can confirm this bug

avatar tecpromotion
tecpromotion - comment - 19 Oct 2019

@nielsnuebel will try to fix it

avatar nielsnuebel
nielsnuebel - comment - 19 Oct 2019

The error only occurs with new articles.

avatar nielsnuebel
nielsnuebel - comment - 19 Oct 2019

https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Table/Table.php#L904
throws an error message with the following content "Field 'metakey' doesn't have a default value". We have to include the required fields in https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Table/Content.php#L184 here.

avatar wilsonge wilsonge - change - 19 Oct 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-10-19 15:15:44
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 19 Oct 2019

PR #26714

avatar wilsonge wilsonge - close - 19 Oct 2019

Add a Comment

Login with GitHub to post a comment