New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Workflow preinstalled default category #23701
[4.0] Workflow preinstalled default category #23701
Conversation
I have tested this item ✅ successfully on 8e1275c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23701. |
@zero-24 Please fix rips issue. |
Just wondering what happens when you upgrade from j3 as they don't have a work flow set. Would it be better to not store anything in the category if it's going to be "use default" and instead make the code use default if no workflow is set. |
The default workflow is available after a migration: |
Sorry you misunderstood me. It is indeed available but its not applied to all existing categories because it needs to be saved as |
Ah, now I understand, the expected default of the select is "use_default" (https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_content/forms/category.xml#L18). When no workflow is assinged to the category, it falls back to the default one: https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_content/Model/ArticleModel.php#L1296 |
so to be clear this pr could also have simply removed the thats what confused me |
Yes, that would have been working, too. |
Now its clear - thanks |
Thanks! |
Pull Request for Issue #23464 .
Summary of Changes
Set the uncategories category workflow selection to "use default" as described in the issue.
Testing Instructions
See #23464