User tests: Successful: Unsuccessful:
Status | New | ⇒ | Pending |
Title |
|
Category | ⇒ | SQL Installation Postgresql |
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:
https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-05-15.sql#L35
Labels |
Added:
?
?
|
Sorry you misunderstood me. It is indeed available but its not applied to all existing categories because it needs to be saved as "workflow_id":"use_default"
in the params field. That would mean opening every category and saving it again to set the value. Unless I have misunderstood the code (and I might have) I am suggesting that if there is no workflow_id set then it will default to "use_default"
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 "workflow_id":"1"
instead of changing it to "workflow_id":"use_default"
thats what confused me
Yes, that would have been working, too.
Now its clear - thanks
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-01-30 09:03:51 |
Closed_By | ⇒ | wilsonge |
Thanks!
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.