User tests: Successful: Unsuccessful:
Category field is required in content item forms but it's possible to save content items without a valid category when creating category on the fly fails. This changes that.
Create a category. Call it whatever but set its alias as duplicate
.
Create or edit an article/contact/newsfeed/banner.
In the category field enter Duplicate
to create category on the fly.
Save.
Saving fails with error:
Save failed with the following error: Another category with the same parent category has the same alias (remember it may be a trashed item).
Article is either saved or we get this:
Argument 1 passed to Joomla\Component\Content\Administrator\Model\ArticleModel::getWorkflowByCategory() must be of the type integer, null given
Contact saving fails with error:
This category is invalid.
Newsfeeds and banners are saved.
IDK.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_banners com_contact com_content com_newsfeeds Language & Strings Libraries |
Labels |
Added:
?
?
|
Yes. I did not make a PR for J3 because some may consider this B/C breaking change
I have tested this item
Correct error is presented in articles, contacts, newsfeeds, and banners.
I have tested this item
Confirmed the issue
Confirmed the fix by testing in com_content
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Contact has a check in table class but other components allow saving without category.
Let's roll the check for a category in the Table level into j3 - no need to port the rest of it.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-09 11:56:04 |
Closed_By | ⇒ | wilsonge |
Thanks!
Is this true in joomla 3 as well?